77 writes to Response
Azure.Core (1)
Pipeline\HttpClientTransport.cs (1)
142message.Response = new PipelineResponse(message.Request.ClientRequestId, responseMessage, contentStream);
Azure.Core.TestFramework (4)
MockTransport.cs (2)
87message.Response = await RequestGate.WaitForRelease(request); 91message.Response = _responseFactory(message);
PlaybackTransport.cs (2)
59message.Response = GetResponse(_session.Lookup(requestEntry, _matcher, _sanitizer)); 92message.Response = GetResponse(_session.Lookup(requestEntry, _matcher, _sanitizer));
Azure.Core.Tests (53)
CoreResponseClassifierTests.cs (2)
23message.Response = new MockResponse(code); 50message.Response = new MockResponse(code);
HttpMessageTests.cs (41)
48message.Response = new MockResponse(204); 51message.Response = new MockResponse(304); 54message.Response = new MockResponse(404); 57message.Response = new MockResponse(500); 70message.Response = new MockResponse(204); 73message.Response = new MockResponse(304); 76message.Response = new MockResponse(404); 79message.Response = new MockResponse(500); 94message.Response = new MockResponse(204); 97message.Response = new MockResponse(301); 100message.Response = new MockResponse(304); 103message.Response = new MockResponse(404); 106message.Response = new MockResponse(500); 115message.Response = new MockResponse(404); 122message.Response = new MockResponse(204); 125message.Response = new MockResponse(304); 128message.Response = new MockResponse(404); 131message.Response = new MockResponse(500); 140message.Response = new MockResponse(404); 152message.Response = new MockResponse(304); 155message.Response = new MockResponse(404); 158message.Response = new MockResponse(500); 173message.Response = new MockResponse(304); 176message.Response = new MockResponse(404); 181message.Response = new MockResponse(304); 184message.Response = new MockResponse(404); 189message.Response = new MockResponse(304); 192message.Response = new MockResponse(404); 195message.Response = new MockResponse(500); 208message.Response = new MockResponse(204); 211message.Response = new MockResponse(304); 214message.Response = new MockResponse(404); 217message.Response = new MockResponse(500); 231message.Response = new MockResponse(204); 234message.Response = new MockResponse(304); 237message.Response = new MockResponse(404); 240message.Response = new MockResponse(500); 254message.Response = new MockResponse(204); 257message.Response = new MockResponse(304); 260message.Response = new MockResponse(404); 263message.Response = new MockResponse(500);
HttpPipelineMessageTest.cs (5)
30message.Response = responseMock.Object; 44message.Response = response; 60message.Response = response; 75message.Response = response; 92message.Response = response;
RequestContextTests.cs (1)
282message.Response = new MockResponse(statusCode);
ResponseClassifierTests.cs (3)
22httpMessage.Response = new MockResponse(code); 71message.Response = new MockResponse(code); 96message.Response = new MockResponse(code);
Shared\Multipart\MemoryTransport.cs (1)
29message.Response = new MemoryResponse();
Azure.Data.Tables (1)
Shared\MemoryTransport.cs (1)
29message.Response = new MemoryResponse();
Azure.Storage.Blobs.Batch (1)
BatchPipelineTransport.cs (1)
48message.Response = new MemoryResponse();
Azure.Storage.Blobs.Batch.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.Batch.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.ChangeFeed.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.ChangeFeed.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Blobs.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Common.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Common.Tests (4)
GeoRedundantReadPolicyTests.cs (1)
87Response = new MockResponse(Constants.HttpStatusCode.NotFound)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
StorageResponseClassifierTests.cs (2)
90httpMessage.Response = new MockResponse(409); 106Response = response
Azure.Storage.Files.DataLake.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Files.DataLake.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Files.Shares.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Files.Shares.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Queues.Samples.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
Azure.Storage.Queues.Tests (1)
Shared\TestExceptionPolicy.cs (1)
90message.Response = response;
25861 references to Response
Azure.AI.AnomalyDetector (99)
Generated\AnomalyDetectorRestClient.cs (92)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 102switch (message.Response.Status) 107using var document = JsonDocument.Parse(message.Response.ContentStream); 109return Response.FromValue(value, message.Response); 112throw ClientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 155return Response.FromValue(value, message.Response); 158throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw ClientDiagnostics.CreateRequestFailedException(message.Response); 221switch (message.Response.Status) 226using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 228return Response.FromValue(value, message.Response); 231throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 248switch (message.Response.Status) 253using var document = JsonDocument.Parse(message.Response.ContentStream); 255return Response.FromValue(value, message.Response); 258throw ClientDiagnostics.CreateRequestFailedException(message.Response); 294var headers = new AnomalyDetectorTrainMultivariateModelHeaders(message.Response); 295switch (message.Response.Status) 298return ResponseWithHeaders.FromValue(headers, message.Response); 300throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 317var headers = new AnomalyDetectorTrainMultivariateModelHeaders(message.Response); 318switch (message.Response.Status) 321return ResponseWithHeaders.FromValue(headers, message.Response); 323throw ClientDiagnostics.CreateRequestFailedException(message.Response); 358switch (message.Response.Status) 363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 365return Response.FromValue(value, message.Response); 368throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380switch (message.Response.Status) 385using var document = JsonDocument.Parse(message.Response.ContentStream); 387return Response.FromValue(value, message.Response); 390throw ClientDiagnostics.CreateRequestFailedException(message.Response); 417switch (message.Response.Status) 422using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 424return Response.FromValue(value, message.Response); 427throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 438switch (message.Response.Status) 443using var document = JsonDocument.Parse(message.Response.ContentStream); 445return Response.FromValue(value, message.Response); 448throw ClientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 478return message.Response; 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 491switch (message.Response.Status) 494return message.Response; 496throw ClientDiagnostics.CreateRequestFailedException(message.Response); 535var headers = new AnomalyDetectorDetectAnomalyHeaders(message.Response); 536switch (message.Response.Status) 539return ResponseWithHeaders.FromValue(headers, message.Response); 541throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 559var headers = new AnomalyDetectorDetectAnomalyHeaders(message.Response); 560switch (message.Response.Status) 563return ResponseWithHeaders.FromValue(headers, message.Response); 565throw ClientDiagnostics.CreateRequestFailedException(message.Response); 592switch (message.Response.Status) 597using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 599return Response.FromValue(value, message.Response); 602throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 613switch (message.Response.Status) 618using var document = JsonDocument.Parse(message.Response.ContentStream); 620return Response.FromValue(value, message.Response); 623throw ClientDiagnostics.CreateRequestFailedException(message.Response); 651switch (message.Response.Status) 656return Response.FromValue(value, message.Response); 659throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 670switch (message.Response.Status) 675return Response.FromValue(value, message.Response); 678throw ClientDiagnostics.CreateRequestFailedException(message.Response); 717switch (message.Response.Status) 722using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 724return Response.FromValue(value, message.Response); 727throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 745switch (message.Response.Status) 750using var document = JsonDocument.Parse(message.Response.ContentStream); 752return Response.FromValue(value, message.Response); 755throw ClientDiagnostics.CreateRequestFailedException(message.Response); 789switch (message.Response.Status) 794using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 796return Response.FromValue(value, message.Response); 799throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 818switch (message.Response.Status) 823using var document = JsonDocument.Parse(message.Response.ContentStream); 825return Response.FromValue(value, message.Response); 828throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.AI.FormRecognizer (349)
Generated\DocumentAnalysisRestClient.cs (118)
92var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); 93switch (message.Response.Status) 96return ResponseWithHeaders.FromValue(headers, message.Response); 98throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 120var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); 121switch (message.Response.Status) 124return ResponseWithHeaders.FromValue(headers, message.Response); 126throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); 184switch (message.Response.Status) 187return ResponseWithHeaders.FromValue(headers, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210var headers = new DocumentAnalysisAnalyzeDocumentHeaders(message.Response); 211switch (message.Response.Status) 214return ResponseWithHeaders.FromValue(headers, message.Response); 216throw ClientDiagnostics.CreateRequestFailedException(message.Response); 256switch (message.Response.Status) 261using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 263return Response.FromValue(value, message.Response); 266throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 288switch (message.Response.Status) 293using var document = JsonDocument.Parse(message.Response.ContentStream); 295return Response.FromValue(value, message.Response); 298throw ClientDiagnostics.CreateRequestFailedException(message.Response); 334var headers = new DocumentAnalysisBuildDocumentModelHeaders(message.Response); 335switch (message.Response.Status) 338return ResponseWithHeaders.FromValue(headers, message.Response); 340throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357var headers = new DocumentAnalysisBuildDocumentModelHeaders(message.Response); 358switch (message.Response.Status) 361return ResponseWithHeaders.FromValue(headers, message.Response); 363throw ClientDiagnostics.CreateRequestFailedException(message.Response); 399var headers = new DocumentAnalysisComposeDocumentModelHeaders(message.Response); 400switch (message.Response.Status) 403return ResponseWithHeaders.FromValue(headers, message.Response); 405throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422var headers = new DocumentAnalysisComposeDocumentModelHeaders(message.Response); 423switch (message.Response.Status) 426return ResponseWithHeaders.FromValue(headers, message.Response); 428throw ClientDiagnostics.CreateRequestFailedException(message.Response); 464switch (message.Response.Status) 469using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 471return Response.FromValue(value, message.Response); 474throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 491switch (message.Response.Status) 496using var document = JsonDocument.Parse(message.Response.ContentStream); 498return Response.FromValue(value, message.Response); 501throw ClientDiagnostics.CreateRequestFailedException(message.Response); 544var headers = new DocumentAnalysisCopyDocumentModelToHeaders(message.Response); 545switch (message.Response.Status) 548return ResponseWithHeaders.FromValue(headers, message.Response); 550throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572var headers = new DocumentAnalysisCopyDocumentModelToHeaders(message.Response); 573switch (message.Response.Status) 576return ResponseWithHeaders.FromValue(headers, message.Response); 578throw ClientDiagnostics.CreateRequestFailedException(message.Response); 603switch (message.Response.Status) 608using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 610return Response.FromValue(value, message.Response); 613throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 623switch (message.Response.Status) 628using var document = JsonDocument.Parse(message.Response.ContentStream); 630return Response.FromValue(value, message.Response); 633throw ClientDiagnostics.CreateRequestFailedException(message.Response); 666switch (message.Response.Status) 671using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 673return Response.FromValue(value, message.Response); 676throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 693switch (message.Response.Status) 698using var document = JsonDocument.Parse(message.Response.ContentStream); 700return Response.FromValue(value, message.Response); 703throw ClientDiagnostics.CreateRequestFailedException(message.Response); 728switch (message.Response.Status) 733using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 735return Response.FromValue(value, message.Response); 738throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 748switch (message.Response.Status) 753using var document = JsonDocument.Parse(message.Response.ContentStream); 755return Response.FromValue(value, message.Response); 758throw ClientDiagnostics.CreateRequestFailedException(message.Response); 791switch (message.Response.Status) 796using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 798return Response.FromValue(value, message.Response); 801throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 818switch (message.Response.Status) 823using var document = JsonDocument.Parse(message.Response.ContentStream); 825return Response.FromValue(value, message.Response); 828throw ClientDiagnostics.CreateRequestFailedException(message.Response); 861switch (message.Response.Status) 864return message.Response; 866throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 883switch (message.Response.Status) 886return message.Response; 888throw ClientDiagnostics.CreateRequestFailedException(message.Response); 913switch (message.Response.Status) 918using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 920return Response.FromValue(value, message.Response); 923throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 933switch (message.Response.Status) 938using var document = JsonDocument.Parse(message.Response.ContentStream); 940return Response.FromValue(value, message.Response); 943throw ClientDiagnostics.CreateRequestFailedException(message.Response); 974switch (message.Response.Status) 979using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 981return Response.FromValue(value, message.Response); 984throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1001switch (message.Response.Status) 1006using var document = JsonDocument.Parse(message.Response.ContentStream); 1008return Response.FromValue(value, message.Response); 1011throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1042switch (message.Response.Status) 1047using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1049return Response.FromValue(value, message.Response); 1052throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1069switch (message.Response.Status) 1074using var document = JsonDocument.Parse(message.Response.ContentStream); 1076return Response.FromValue(value, message.Response); 1079throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FormRecognizerRestClient.cs (224)
76var headers = new FormRecognizerTrainCustomModelAsyncHeaders(message.Response); 77switch (message.Response.Status) 80return ResponseWithHeaders.FromValue(headers, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 99var headers = new FormRecognizerTrainCustomModelAsyncHeaders(message.Response); 100switch (message.Response.Status) 103return ResponseWithHeaders.FromValue(headers, message.Response); 105throw ClientDiagnostics.CreateRequestFailedException(message.Response); 137switch (message.Response.Status) 142using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 144return Response.FromValue(value, message.Response); 147throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 159switch (message.Response.Status) 164using var document = JsonDocument.Parse(message.Response.ContentStream); 166return Response.FromValue(value, message.Response); 169throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 199return message.Response; 201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 212switch (message.Response.Status) 215return message.Response; 217throw ClientDiagnostics.CreateRequestFailedException(message.Response); 262var headers = new FormRecognizerAnalyzeWithCustomModelHeaders(message.Response); 263switch (message.Response.Status) 266return ResponseWithHeaders.FromValue(headers, message.Response); 268throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 283var headers = new FormRecognizerAnalyzeWithCustomModelHeaders(message.Response); 284switch (message.Response.Status) 287return ResponseWithHeaders.FromValue(headers, message.Response); 289throw ClientDiagnostics.CreateRequestFailedException(message.Response); 335var headers = new FormRecognizerAnalyzeWithCustomModelHeaders(message.Response); 336switch (message.Response.Status) 339return ResponseWithHeaders.FromValue(headers, message.Response); 341throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 355var headers = new FormRecognizerAnalyzeWithCustomModelHeaders(message.Response); 356switch (message.Response.Status) 359return ResponseWithHeaders.FromValue(headers, message.Response); 361throw ClientDiagnostics.CreateRequestFailedException(message.Response); 391switch (message.Response.Status) 396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 398return Response.FromValue(value, message.Response); 401throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 413switch (message.Response.Status) 418using var document = JsonDocument.Parse(message.Response.ContentStream); 420return Response.FromValue(value, message.Response); 423throw ClientDiagnostics.CreateRequestFailedException(message.Response); 462var headers = new FormRecognizerCopyCustomModelHeaders(message.Response); 463switch (message.Response.Status) 466return ResponseWithHeaders.FromValue(headers, message.Response); 468throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 486var headers = new FormRecognizerCopyCustomModelHeaders(message.Response); 487switch (message.Response.Status) 490return ResponseWithHeaders.FromValue(headers, message.Response); 492throw ClientDiagnostics.CreateRequestFailedException(message.Response); 522switch (message.Response.Status) 527using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 529return Response.FromValue(value, message.Response); 532throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 544switch (message.Response.Status) 549using var document = JsonDocument.Parse(message.Response.ContentStream); 551return Response.FromValue(value, message.Response); 554throw ClientDiagnostics.CreateRequestFailedException(message.Response); 579var headers = new FormRecognizerGenerateModelCopyAuthorizationHeaders(message.Response); 580switch (message.Response.Status) 585using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 587return ResponseWithHeaders.FromValue(value, headers, message.Response); 590throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 600var headers = new FormRecognizerGenerateModelCopyAuthorizationHeaders(message.Response); 601switch (message.Response.Status) 606using var document = JsonDocument.Parse(message.Response.ContentStream); 608return ResponseWithHeaders.FromValue(value, headers, message.Response); 611throw ClientDiagnostics.CreateRequestFailedException(message.Response); 651var headers = new FormRecognizerComposeCustomModelsAsyncHeaders(message.Response); 652switch (message.Response.Status) 655return ResponseWithHeaders.FromValue(headers, message.Response); 657throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678var headers = new FormRecognizerComposeCustomModelsAsyncHeaders(message.Response); 679switch (message.Response.Status) 682return ResponseWithHeaders.FromValue(headers, message.Response); 684throw ClientDiagnostics.CreateRequestFailedException(message.Response); 731var headers = new FormRecognizerAnalyzeBusinessCardAsyncHeaders(message.Response); 732switch (message.Response.Status) 735return ResponseWithHeaders.FromValue(headers, message.Response); 737throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752var headers = new FormRecognizerAnalyzeBusinessCardAsyncHeaders(message.Response); 753switch (message.Response.Status) 756return ResponseWithHeaders.FromValue(headers, message.Response); 758throw ClientDiagnostics.CreateRequestFailedException(message.Response); 806var headers = new FormRecognizerAnalyzeBusinessCardAsyncHeaders(message.Response); 807switch (message.Response.Status) 810return ResponseWithHeaders.FromValue(headers, message.Response); 812throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 826var headers = new FormRecognizerAnalyzeBusinessCardAsyncHeaders(message.Response); 827switch (message.Response.Status) 830return ResponseWithHeaders.FromValue(headers, message.Response); 832throw ClientDiagnostics.CreateRequestFailedException(message.Response); 859switch (message.Response.Status) 864using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 866return Response.FromValue(value, message.Response); 869throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 880switch (message.Response.Status) 885using var document = JsonDocument.Parse(message.Response.ContentStream); 887return Response.FromValue(value, message.Response); 890throw ClientDiagnostics.CreateRequestFailedException(message.Response); 937var headers = new FormRecognizerAnalyzeInvoiceAsyncHeaders(message.Response); 938switch (message.Response.Status) 941return ResponseWithHeaders.FromValue(headers, message.Response); 943throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 958var headers = new FormRecognizerAnalyzeInvoiceAsyncHeaders(message.Response); 959switch (message.Response.Status) 962return ResponseWithHeaders.FromValue(headers, message.Response); 964throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1012var headers = new FormRecognizerAnalyzeInvoiceAsyncHeaders(message.Response); 1013switch (message.Response.Status) 1016return ResponseWithHeaders.FromValue(headers, message.Response); 1018throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1032var headers = new FormRecognizerAnalyzeInvoiceAsyncHeaders(message.Response); 1033switch (message.Response.Status) 1036return ResponseWithHeaders.FromValue(headers, message.Response); 1038throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1065switch (message.Response.Status) 1070using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1072return Response.FromValue(value, message.Response); 1075throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1086switch (message.Response.Status) 1091using var document = JsonDocument.Parse(message.Response.ContentStream); 1093return Response.FromValue(value, message.Response); 1096throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1138var headers = new FormRecognizerAnalyzeIdDocumentAsyncHeaders(message.Response); 1139switch (message.Response.Status) 1142return ResponseWithHeaders.FromValue(headers, message.Response); 1144throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1158var headers = new FormRecognizerAnalyzeIdDocumentAsyncHeaders(message.Response); 1159switch (message.Response.Status) 1162return ResponseWithHeaders.FromValue(headers, message.Response); 1164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1207var headers = new FormRecognizerAnalyzeIdDocumentAsyncHeaders(message.Response); 1208switch (message.Response.Status) 1211return ResponseWithHeaders.FromValue(headers, message.Response); 1213throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1226var headers = new FormRecognizerAnalyzeIdDocumentAsyncHeaders(message.Response); 1227switch (message.Response.Status) 1230return ResponseWithHeaders.FromValue(headers, message.Response); 1232throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1259switch (message.Response.Status) 1264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1266return Response.FromValue(value, message.Response); 1269throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1280switch (message.Response.Status) 1285using var document = JsonDocument.Parse(message.Response.ContentStream); 1287return Response.FromValue(value, message.Response); 1290throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1337var headers = new FormRecognizerAnalyzeReceiptAsyncHeaders(message.Response); 1338switch (message.Response.Status) 1341return ResponseWithHeaders.FromValue(headers, message.Response); 1343throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1358var headers = new FormRecognizerAnalyzeReceiptAsyncHeaders(message.Response); 1359switch (message.Response.Status) 1362return ResponseWithHeaders.FromValue(headers, message.Response); 1364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1412var headers = new FormRecognizerAnalyzeReceiptAsyncHeaders(message.Response); 1413switch (message.Response.Status) 1416return ResponseWithHeaders.FromValue(headers, message.Response); 1418throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1432var headers = new FormRecognizerAnalyzeReceiptAsyncHeaders(message.Response); 1433switch (message.Response.Status) 1436return ResponseWithHeaders.FromValue(headers, message.Response); 1438throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1465switch (message.Response.Status) 1470using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1472return Response.FromValue(value, message.Response); 1475throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1486switch (message.Response.Status) 1491using var document = JsonDocument.Parse(message.Response.ContentStream); 1493return Response.FromValue(value, message.Response); 1496throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1543var headers = new FormRecognizerAnalyzeLayoutAsyncHeaders(message.Response); 1544switch (message.Response.Status) 1547return ResponseWithHeaders.FromValue(headers, message.Response); 1549throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1564var headers = new FormRecognizerAnalyzeLayoutAsyncHeaders(message.Response); 1565switch (message.Response.Status) 1568return ResponseWithHeaders.FromValue(headers, message.Response); 1570throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1618var headers = new FormRecognizerAnalyzeLayoutAsyncHeaders(message.Response); 1619switch (message.Response.Status) 1622return ResponseWithHeaders.FromValue(headers, message.Response); 1624throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1638var headers = new FormRecognizerAnalyzeLayoutAsyncHeaders(message.Response); 1639switch (message.Response.Status) 1642return ResponseWithHeaders.FromValue(headers, message.Response); 1644throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1671switch (message.Response.Status) 1676using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1678return Response.FromValue(value, message.Response); 1681throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1692switch (message.Response.Status) 1697using var document = JsonDocument.Parse(message.Response.ContentStream); 1699return Response.FromValue(value, message.Response); 1702throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1728switch (message.Response.Status) 1733using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1735return Response.FromValue(value, message.Response); 1738throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1748switch (message.Response.Status) 1753using var document = JsonDocument.Parse(message.Response.ContentStream); 1755return Response.FromValue(value, message.Response); 1758throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1784switch (message.Response.Status) 1789using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1791return Response.FromValue(value, message.Response); 1794throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1804switch (message.Response.Status) 1809using var document = JsonDocument.Parse(message.Response.ContentStream); 1811return Response.FromValue(value, message.Response); 1814throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1846switch (message.Response.Status) 1851using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1853return Response.FromValue(value, message.Response); 1856throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1873switch (message.Response.Status) 1878using var document = JsonDocument.Parse(message.Response.ContentStream); 1880return Response.FromValue(value, message.Response); 1883throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.AI.Language.Conversations (15)
Generated\ConversationAnalysisRestClient.cs (8)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return Response.FromValue(value, message.Response); 95throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.AI.Language.QuestionAnswering (28)
Generated\QuestionAnsweringProjectsClient.cs (5)
3399return message.Response.Status switch 3412return message.Response.Status switch 3426return message.Response.Status switch 3439return message.Response.Status switch 3453return message.Response.Status switch
Generated\QuestionAnsweringRuntimeRestClient.cs (16)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return Response.FromValue(value, message.Response); 95throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132throw ClientDiagnostics.CreateRequestFailedException(message.Response); 168switch (message.Response.Status) 173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 175return Response.FromValue(value, message.Response); 178throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 195switch (message.Response.Status) 200using var document = JsonDocument.Parse(message.Response.ContentStream); 202return Response.FromValue(value, message.Response); 205throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.AI.MetricsAdvisor (555)
Generated\MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2RestClient.cs (548)
60switch (message.Response.Status) 65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 67return Response.FromValue(value, message.Response); 70throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 80switch (message.Response.Status) 85using var document = JsonDocument.Parse(message.Response.ContentStream); 87return Response.FromValue(value, message.Response); 90throw ClientDiagnostics.CreateRequestFailedException(message.Response); 116switch (message.Response.Status) 121using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 123return Response.FromValue(value, message.Response); 126throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142using var document = JsonDocument.Parse(message.Response.ContentStream); 144return Response.FromValue(value, message.Response); 147throw ClientDiagnostics.CreateRequestFailedException(message.Response); 184switch (message.Response.Status) 189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 191return Response.FromValue(value, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 212switch (message.Response.Status) 217using var document = JsonDocument.Parse(message.Response.ContentStream); 219return Response.FromValue(value, message.Response); 222throw ClientDiagnostics.CreateRequestFailedException(message.Response); 248switch (message.Response.Status) 251return message.Response; 253throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 267return message.Response; 269throw ClientDiagnostics.CreateRequestFailedException(message.Response); 304var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response); 305switch (message.Response.Status) 308return ResponseWithHeaders.FromValue(headers, message.Response); 310throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response); 328switch (message.Response.Status) 331return ResponseWithHeaders.FromValue(headers, message.Response); 333throw ClientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 388return Response.FromValue(value, message.Response); 391throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 411switch (message.Response.Status) 416using var document = JsonDocument.Parse(message.Response.ContentStream); 418return Response.FromValue(value, message.Response); 421throw ClientDiagnostics.CreateRequestFailedException(message.Response); 467switch (message.Response.Status) 472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 474return Response.FromValue(value, message.Response); 477throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 504return Response.FromValue(value, message.Response); 507throw ClientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 583switch (message.Response.Status) 588using var document = JsonDocument.Parse(message.Response.ContentStream); 590return Response.FromValue(value, message.Response); 593throw ClientDiagnostics.CreateRequestFailedException(message.Response); 619switch (message.Response.Status) 624using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 626return Response.FromValue(value, message.Response); 629throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 640switch (message.Response.Status) 645using var document = JsonDocument.Parse(message.Response.ContentStream); 647return Response.FromValue(value, message.Response); 650throw ClientDiagnostics.CreateRequestFailedException(message.Response); 687switch (message.Response.Status) 692using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 694return Response.FromValue(value, message.Response); 697throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 715switch (message.Response.Status) 720using var document = JsonDocument.Parse(message.Response.ContentStream); 722return Response.FromValue(value, message.Response); 725throw ClientDiagnostics.CreateRequestFailedException(message.Response); 751switch (message.Response.Status) 754return message.Response; 756throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 767switch (message.Response.Status) 770return message.Response; 772throw ClientDiagnostics.CreateRequestFailedException(message.Response); 807var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response); 808switch (message.Response.Status) 811return ResponseWithHeaders.FromValue(headers, message.Response); 813throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 830var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response); 831switch (message.Response.Status) 834return ResponseWithHeaders.FromValue(headers, message.Response); 836throw ClientDiagnostics.CreateRequestFailedException(message.Response); 873switch (message.Response.Status) 878using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 880return Response.FromValue(value, message.Response); 883throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 896switch (message.Response.Status) 901using var document = JsonDocument.Parse(message.Response.ContentStream); 903return Response.FromValue(value, message.Response); 906throw ClientDiagnostics.CreateRequestFailedException(message.Response); 944switch (message.Response.Status) 949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 951return Response.FromValue(value, message.Response); 954throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 972switch (message.Response.Status) 977using var document = JsonDocument.Parse(message.Response.ContentStream); 979return Response.FromValue(value, message.Response); 982throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1030switch (message.Response.Status) 1035using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1037return Response.FromValue(value, message.Response); 1040throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1060switch (message.Response.Status) 1065using var document = JsonDocument.Parse(message.Response.ContentStream); 1067return Response.FromValue(value, message.Response); 1070throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1118switch (message.Response.Status) 1123using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1125return Response.FromValue(value, message.Response); 1128throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1148switch (message.Response.Status) 1153using var document = JsonDocument.Parse(message.Response.ContentStream); 1155return Response.FromValue(value, message.Response); 1158throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1201switch (message.Response.Status) 1206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1208return Response.FromValue(value, message.Response); 1211throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1230switch (message.Response.Status) 1235using var document = JsonDocument.Parse(message.Response.ContentStream); 1237return Response.FromValue(value, message.Response); 1240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1277switch (message.Response.Status) 1282using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1284return Response.FromValue(value, message.Response); 1287throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1300switch (message.Response.Status) 1305using var document = JsonDocument.Parse(message.Response.ContentStream); 1307return Response.FromValue(value, message.Response); 1310throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1346switch (message.Response.Status) 1351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1353return Response.FromValue(value, message.Response); 1356throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1374switch (message.Response.Status) 1379using var document = JsonDocument.Parse(message.Response.ContentStream); 1381return Response.FromValue(value, message.Response); 1384throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1419var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateCredentialHeaders(message.Response); 1420switch (message.Response.Status) 1423return ResponseWithHeaders.FromValue(headers, message.Response); 1425throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1442var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateCredentialHeaders(message.Response); 1443switch (message.Response.Status) 1446return ResponseWithHeaders.FromValue(headers, message.Response); 1448throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1482switch (message.Response.Status) 1487using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1489return Response.FromValue(value, message.Response); 1492throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1504switch (message.Response.Status) 1509using var document = JsonDocument.Parse(message.Response.ContentStream); 1511return Response.FromValue(value, message.Response); 1514throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1551switch (message.Response.Status) 1556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1558return Response.FromValue(value, message.Response); 1561throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1579switch (message.Response.Status) 1584using var document = JsonDocument.Parse(message.Response.ContentStream); 1586return Response.FromValue(value, message.Response); 1589throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1615switch (message.Response.Status) 1618return message.Response; 1620throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1631switch (message.Response.Status) 1634return message.Response; 1636throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1662switch (message.Response.Status) 1667using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1669return Response.FromValue(value, message.Response); 1672throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1683switch (message.Response.Status) 1688using var document = JsonDocument.Parse(message.Response.ContentStream); 1690return Response.FromValue(value, message.Response); 1693throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1752switch (message.Response.Status) 1757using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1759return Response.FromValue(value, message.Response); 1762throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1779switch (message.Response.Status) 1784using var document = JsonDocument.Parse(message.Response.ContentStream); 1786return Response.FromValue(value, message.Response); 1789throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1824var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response); 1825switch (message.Response.Status) 1828return ResponseWithHeaders.FromValue(headers, message.Response); 1830throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1847var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response); 1848switch (message.Response.Status) 1851return ResponseWithHeaders.FromValue(headers, message.Response); 1853throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1879switch (message.Response.Status) 1884using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1886return Response.FromValue(value, message.Response); 1889throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1900switch (message.Response.Status) 1905using var document = JsonDocument.Parse(message.Response.ContentStream); 1907return Response.FromValue(value, message.Response); 1910throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1947switch (message.Response.Status) 1952using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1954return Response.FromValue(value, message.Response); 1957throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1975switch (message.Response.Status) 1980using var document = JsonDocument.Parse(message.Response.ContentStream); 1982return Response.FromValue(value, message.Response); 1985throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2011switch (message.Response.Status) 2014return message.Response; 2016throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2027switch (message.Response.Status) 2030return message.Response; 2032throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2058switch (message.Response.Status) 2063using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2065return Response.FromValue(value, message.Response); 2068throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2079switch (message.Response.Status) 2084using var document = JsonDocument.Parse(message.Response.ContentStream); 2086return Response.FromValue(value, message.Response); 2089throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2134switch (message.Response.Status) 2139using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2141return Response.FromValue(value, message.Response); 2144throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2163switch (message.Response.Status) 2168using var document = JsonDocument.Parse(message.Response.ContentStream); 2170return Response.FromValue(value, message.Response); 2173throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2208var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response); 2209switch (message.Response.Status) 2212return ResponseWithHeaders.FromValue(headers, message.Response); 2214throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2231var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response); 2232switch (message.Response.Status) 2235return ResponseWithHeaders.FromValue(headers, message.Response); 2237throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2276switch (message.Response.Status) 2281using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2283return Response.FromValue(value, message.Response); 2286throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2299switch (message.Response.Status) 2304using var document = JsonDocument.Parse(message.Response.ContentStream); 2306return Response.FromValue(value, message.Response); 2309throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2344var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response); 2345switch (message.Response.Status) 2348return ResponseWithHeaders.FromValue(headers, message.Response); 2350throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2367var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response); 2368switch (message.Response.Status) 2371return ResponseWithHeaders.FromValue(headers, message.Response); 2373throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2399switch (message.Response.Status) 2404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2406return Response.FromValue(value, message.Response); 2409throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2420switch (message.Response.Status) 2425using var document = JsonDocument.Parse(message.Response.ContentStream); 2427return Response.FromValue(value, message.Response); 2430throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2467switch (message.Response.Status) 2472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2474return Response.FromValue(value, message.Response); 2477throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2495switch (message.Response.Status) 2500using var document = JsonDocument.Parse(message.Response.ContentStream); 2502return Response.FromValue(value, message.Response); 2505throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2531switch (message.Response.Status) 2534return message.Response; 2536throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2547switch (message.Response.Status) 2550return message.Response; 2552throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2600switch (message.Response.Status) 2605using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2607return Response.FromValue(value, message.Response); 2610throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2630switch (message.Response.Status) 2635using var document = JsonDocument.Parse(message.Response.ContentStream); 2637return Response.FromValue(value, message.Response); 2640throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2678switch (message.Response.Status) 2681return message.Response; 2683throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2701switch (message.Response.Status) 2704return message.Response; 2706throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2733switch (message.Response.Status) 2738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2740return Response.FromValue(value, message.Response); 2743throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2754switch (message.Response.Status) 2759using var document = JsonDocument.Parse(message.Response.ContentStream); 2761return Response.FromValue(value, message.Response); 2764throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2802switch (message.Response.Status) 2807using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2809return Response.FromValue(value, message.Response); 2812throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2830switch (message.Response.Status) 2835using var document = JsonDocument.Parse(message.Response.ContentStream); 2837return Response.FromValue(value, message.Response); 2840throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2888switch (message.Response.Status) 2893using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2895return Response.FromValue(value, message.Response); 2898throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2918switch (message.Response.Status) 2923using var document = JsonDocument.Parse(message.Response.ContentStream); 2925return Response.FromValue(value, message.Response); 2928throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2976switch (message.Response.Status) 2981using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2983return Response.FromValue(value, message.Response); 2986throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3006switch (message.Response.Status) 3011using var document = JsonDocument.Parse(message.Response.ContentStream); 3013return Response.FromValue(value, message.Response); 3016throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3053switch (message.Response.Status) 3058using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3060return Response.FromValue(value, message.Response); 3063throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3076switch (message.Response.Status) 3081using var document = JsonDocument.Parse(message.Response.ContentStream); 3083return Response.FromValue(value, message.Response); 3086throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3134switch (message.Response.Status) 3139using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3141return Response.FromValue(value, message.Response); 3144throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3164switch (message.Response.Status) 3169using var document = JsonDocument.Parse(message.Response.ContentStream); 3171return Response.FromValue(value, message.Response); 3174throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3215switch (message.Response.Status) 3220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3222return Response.FromValue(value, message.Response); 3225throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3247switch (message.Response.Status) 3252using var document = JsonDocument.Parse(message.Response.ContentStream); 3254return Response.FromValue(value, message.Response); 3257throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3298switch (message.Response.Status) 3303using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3305return Response.FromValue(value, message.Response); 3308throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3330switch (message.Response.Status) 3335using var document = JsonDocument.Parse(message.Response.ContentStream); 3337return Response.FromValue(value, message.Response); 3340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3381switch (message.Response.Status) 3386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3388return Response.FromValue(value, message.Response); 3391throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3413switch (message.Response.Status) 3418using var document = JsonDocument.Parse(message.Response.ContentStream); 3420return Response.FromValue(value, message.Response); 3423throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3464switch (message.Response.Status) 3469using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3471return Response.FromValue(value, message.Response); 3474throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3496switch (message.Response.Status) 3501using var document = JsonDocument.Parse(message.Response.ContentStream); 3503return Response.FromValue(value, message.Response); 3506throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3547switch (message.Response.Status) 3552using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3554return Response.FromValue(value, message.Response); 3557throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3579switch (message.Response.Status) 3584using var document = JsonDocument.Parse(message.Response.ContentStream); 3586return Response.FromValue(value, message.Response); 3589throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3630switch (message.Response.Status) 3635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3637return Response.FromValue(value, message.Response); 3640throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3662switch (message.Response.Status) 3667using var document = JsonDocument.Parse(message.Response.ContentStream); 3669return Response.FromValue(value, message.Response); 3672throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3713switch (message.Response.Status) 3718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3720return Response.FromValue(value, message.Response); 3723throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3745switch (message.Response.Status) 3750using var document = JsonDocument.Parse(message.Response.ContentStream); 3752return Response.FromValue(value, message.Response); 3755throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3796switch (message.Response.Status) 3801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3803return Response.FromValue(value, message.Response); 3806throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3828switch (message.Response.Status) 3833using var document = JsonDocument.Parse(message.Response.ContentStream); 3835return Response.FromValue(value, message.Response); 3838throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3877switch (message.Response.Status) 3882using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3884return Response.FromValue(value, message.Response); 3887throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3912switch (message.Response.Status) 3917using var document = JsonDocument.Parse(message.Response.ContentStream); 3919return Response.FromValue(value, message.Response); 3922throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3961switch (message.Response.Status) 3966using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3968return Response.FromValue(value, message.Response); 3971throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3996switch (message.Response.Status) 4001using var document = JsonDocument.Parse(message.Response.ContentStream); 4003return Response.FromValue(value, message.Response); 4006throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4045switch (message.Response.Status) 4050using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4052return Response.FromValue(value, message.Response); 4055throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4080switch (message.Response.Status) 4085using var document = JsonDocument.Parse(message.Response.ContentStream); 4087return Response.FromValue(value, message.Response); 4090throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4124switch (message.Response.Status) 4129using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4131return Response.FromValue(value, message.Response); 4134throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4154switch (message.Response.Status) 4159using var document = JsonDocument.Parse(message.Response.ContentStream); 4161return Response.FromValue(value, message.Response); 4164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4203switch (message.Response.Status) 4208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4210return Response.FromValue(value, message.Response); 4213throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4238switch (message.Response.Status) 4243using var document = JsonDocument.Parse(message.Response.ContentStream); 4245return Response.FromValue(value, message.Response); 4248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4287switch (message.Response.Status) 4292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4294return Response.FromValue(value, message.Response); 4297throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4322switch (message.Response.Status) 4327using var document = JsonDocument.Parse(message.Response.ContentStream); 4329return Response.FromValue(value, message.Response); 4332throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4370switch (message.Response.Status) 4375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4377return Response.FromValue(value, message.Response); 4380throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4404switch (message.Response.Status) 4409using var document = JsonDocument.Parse(message.Response.ContentStream); 4411return Response.FromValue(value, message.Response); 4414throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4448switch (message.Response.Status) 4453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4455return Response.FromValue(value, message.Response); 4458throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4478switch (message.Response.Status) 4483using var document = JsonDocument.Parse(message.Response.ContentStream); 4485return Response.FromValue(value, message.Response); 4488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4521switch (message.Response.Status) 4526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4528return Response.FromValue(value, message.Response); 4531throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4550switch (message.Response.Status) 4555using var document = JsonDocument.Parse(message.Response.ContentStream); 4557return Response.FromValue(value, message.Response); 4560throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4598switch (message.Response.Status) 4603using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4605return Response.FromValue(value, message.Response); 4608throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4632switch (message.Response.Status) 4637using var document = JsonDocument.Parse(message.Response.ContentStream); 4639return Response.FromValue(value, message.Response); 4642throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4680switch (message.Response.Status) 4685using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4687return Response.FromValue(value, message.Response); 4690throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4714switch (message.Response.Status) 4719using var document = JsonDocument.Parse(message.Response.ContentStream); 4721return Response.FromValue(value, message.Response); 4724throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4758switch (message.Response.Status) 4763using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4765return Response.FromValue(value, message.Response); 4768throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4788switch (message.Response.Status) 4793using var document = JsonDocument.Parse(message.Response.ContentStream); 4795return Response.FromValue(value, message.Response); 4798throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4837switch (message.Response.Status) 4842using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4844return Response.FromValue(value, message.Response); 4847throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4872switch (message.Response.Status) 4877using var document = JsonDocument.Parse(message.Response.ContentStream); 4879return Response.FromValue(value, message.Response); 4882throw ClientDiagnostics.CreateRequestFailedException(message.Response); 4921switch (message.Response.Status) 4926using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 4928return Response.FromValue(value, message.Response); 4931throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 4956switch (message.Response.Status) 4961using var document = JsonDocument.Parse(message.Response.ContentStream); 4963return Response.FromValue(value, message.Response); 4966throw ClientDiagnostics.CreateRequestFailedException(message.Response); 5005switch (message.Response.Status) 5010using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 5012return Response.FromValue(value, message.Response); 5015throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 5040switch (message.Response.Status) 5045using var document = JsonDocument.Parse(message.Response.ContentStream); 5047return Response.FromValue(value, message.Response); 5050throw ClientDiagnostics.CreateRequestFailedException(message.Response); 5084switch (message.Response.Status) 5089using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 5091return Response.FromValue(value, message.Response); 5094throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 5114switch (message.Response.Status) 5119using var document = JsonDocument.Parse(message.Response.ContentStream); 5121return Response.FromValue(value, message.Response); 5124throw ClientDiagnostics.CreateRequestFailedException(message.Response); 5163switch (message.Response.Status) 5168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 5170return Response.FromValue(value, message.Response); 5173throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 5198switch (message.Response.Status) 5203using var document = JsonDocument.Parse(message.Response.ContentStream); 5205return Response.FromValue(value, message.Response); 5208throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.AI.Personalizer (159)
Generated\EvaluationsRestClient.cs (32)
64switch (message.Response.Status) 67return message.Response; 69throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 86switch (message.Response.Status) 89return message.Response; 91throw _clientDiagnostics.CreateRequestFailedException(message.Response); 123switch (message.Response.Status) 128using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 130return Response.FromValue(value, message.Response); 133throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 184switch (message.Response.Status) 189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 209switch (message.Response.Status) 214using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 259var headers = new EvaluationsCreateHeaders(message.Response); 260switch (message.Response.Status) 265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 267return ResponseWithHeaders.FromValue(value, headers, message.Response); 270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287var headers = new EvaluationsCreateHeaders(message.Response); 288switch (message.Response.Status) 293using var document = JsonDocument.Parse(message.Response.ContentStream); 295return ResponseWithHeaders.FromValue(value, headers, message.Response); 298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventsRestClient.cs (12)
73switch (message.Response.Status) 76return message.Response; 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 103return message.Response; 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 138switch (message.Response.Status) 141return message.Response; 143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 163return message.Response; 165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LogRestClient.cs (14)
55switch (message.Response.Status) 58return message.Response; 60throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 70switch (message.Response.Status) 73return message.Response; 75throw _clientDiagnostics.CreateRequestFailedException(message.Response); 99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 119switch (message.Response.Status) 124using var document = JsonDocument.Parse(message.Response.ContentStream); 126return Response.FromValue(value, message.Response); 129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelRestClient.cs (20)
57switch (message.Response.Status) 62return Response.FromValue(value, message.Response); 65throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 75switch (message.Response.Status) 80return Response.FromValue(value, message.Response); 83throw _clientDiagnostics.CreateRequestFailedException(message.Response); 107switch (message.Response.Status) 110return message.Response; 112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 125return message.Response; 127throw _clientDiagnostics.CreateRequestFailedException(message.Response); 151switch (message.Response.Status) 156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 158return Response.FromValue(value, message.Response); 161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171switch (message.Response.Status) 176using var document = JsonDocument.Parse(message.Response.ContentStream); 178return Response.FromValue(value, message.Response); 181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MultiSlotEventsRestClient.cs (12)
73switch (message.Response.Status) 76return message.Response; 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 103return message.Response; 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 138switch (message.Response.Status) 141return message.Response; 143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 163return message.Response; 165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MultiSlotRestClient.cs (8)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyRestClient.cs (24)
56switch (message.Response.Status) 61using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 63return Response.FromValue(value, message.Response); 66throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 76switch (message.Response.Status) 81using var document = JsonDocument.Parse(message.Response.ContentStream); 83return Response.FromValue(value, message.Response); 86throw _clientDiagnostics.CreateRequestFailedException(message.Response); 121switch (message.Response.Status) 126using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 128return Response.FromValue(value, message.Response); 131throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 202switch (message.Response.Status) 207using var document = JsonDocument.Parse(message.Response.ContentStream); 209return Response.FromValue(value, message.Response); 212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RankRestClient.cs (8)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceConfigurationRestClient.cs (22)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response); 128switch (message.Response.Status) 133using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 135return Response.FromValue(value, message.Response); 138throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw _clientDiagnostics.CreateRequestFailedException(message.Response); 193switch (message.Response.Status) 196return message.Response; 198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215switch (message.Response.Status) 218return message.Response; 220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.AI.TextAnalytics (127)
Generated\TextAnalyticsRestClient.cs (120)
72var headers = new TextAnalyticsAnalyzeHeaders(message.Response); 73switch (message.Response.Status) 76return ResponseWithHeaders.FromValue(headers, message.Response); 78throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 89var headers = new TextAnalyticsAnalyzeHeaders(message.Response); 90switch (message.Response.Status) 93return ResponseWithHeaders.FromValue(headers, message.Response); 95throw ClientDiagnostics.CreateRequestFailedException(message.Response); 143switch (message.Response.Status) 148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 150return Response.FromValue(value, message.Response); 153throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw ClientDiagnostics.CreateRequestFailedException(message.Response); 225switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return Response.FromValue(value, message.Response); 235throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 249switch (message.Response.Status) 254using var document = JsonDocument.Parse(message.Response.ContentStream); 256return Response.FromValue(value, message.Response); 259throw ClientDiagnostics.CreateRequestFailedException(message.Response); 286var headers = new TextAnalyticsCancelHealthJobHeaders(message.Response); 287switch (message.Response.Status) 290return ResponseWithHeaders.FromValue(headers, message.Response); 292throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303var headers = new TextAnalyticsCancelHealthJobHeaders(message.Response); 304switch (message.Response.Status) 307return ResponseWithHeaders.FromValue(headers, message.Response); 309throw ClientDiagnostics.CreateRequestFailedException(message.Response); 360var headers = new TextAnalyticsHealthHeaders(message.Response); 361switch (message.Response.Status) 364return ResponseWithHeaders.FromValue(headers, message.Response); 366throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386var headers = new TextAnalyticsHealthHeaders(message.Response); 387switch (message.Response.Status) 390return ResponseWithHeaders.FromValue(headers, message.Response); 392throw ClientDiagnostics.CreateRequestFailedException(message.Response); 448switch (message.Response.Status) 453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 455return Response.FromValue(value, message.Response); 458throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw ClientDiagnostics.CreateRequestFailedException(message.Response); 558switch (message.Response.Status) 563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 565return Response.FromValue(value, message.Response); 568throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 594switch (message.Response.Status) 599using var document = JsonDocument.Parse(message.Response.ContentStream); 601return Response.FromValue(value, message.Response); 604throw ClientDiagnostics.CreateRequestFailedException(message.Response); 660switch (message.Response.Status) 665using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 667return Response.FromValue(value, message.Response); 670throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 691switch (message.Response.Status) 696using var document = JsonDocument.Parse(message.Response.ContentStream); 698return Response.FromValue(value, message.Response); 701throw ClientDiagnostics.CreateRequestFailedException(message.Response); 752switch (message.Response.Status) 757using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 759return Response.FromValue(value, message.Response); 762throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 782switch (message.Response.Status) 787using var document = JsonDocument.Parse(message.Response.ContentStream); 789return Response.FromValue(value, message.Response); 792throw ClientDiagnostics.CreateRequestFailedException(message.Response); 843switch (message.Response.Status) 848using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 850return Response.FromValue(value, message.Response); 853throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 873switch (message.Response.Status) 878using var document = JsonDocument.Parse(message.Response.ContentStream); 880return Response.FromValue(value, message.Response); 883throw ClientDiagnostics.CreateRequestFailedException(message.Response); 944switch (message.Response.Status) 949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 951return Response.FromValue(value, message.Response); 954throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 976switch (message.Response.Status) 981using var document = JsonDocument.Parse(message.Response.ContentStream); 983return Response.FromValue(value, message.Response); 986throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1019switch (message.Response.Status) 1024using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1026return Response.FromValue(value, message.Response); 1029throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1046switch (message.Response.Status) 1051using var document = JsonDocument.Parse(message.Response.ContentStream); 1053return Response.FromValue(value, message.Response); 1056throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1089switch (message.Response.Status) 1094using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1096return Response.FromValue(value, message.Response); 1099throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1116switch (message.Response.Status) 1121using var document = JsonDocument.Parse(message.Response.ContentStream); 1123return Response.FromValue(value, message.Response); 1126throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1158switch (message.Response.Status) 1163using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1165return Response.FromValue(value, message.Response); 1168throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1185switch (message.Response.Status) 1190using var document = JsonDocument.Parse(message.Response.ContentStream); 1192return Response.FromValue(value, message.Response); 1195throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1227switch (message.Response.Status) 1232using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1234return Response.FromValue(value, message.Response); 1237throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1254switch (message.Response.Status) 1259using var document = JsonDocument.Parse(message.Response.ContentStream); 1261return Response.FromValue(value, message.Response); 1264throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.AI.Translation.Document (113)
Generated\DocumentTranslationRestClient.cs (106)
81var headers = new DocumentTranslationStartTranslationHeaders(message.Response); 82switch (message.Response.Status) 85return ResponseWithHeaders.FromValue(headers, message.Response); 87throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 114var headers = new DocumentTranslationStartTranslationHeaders(message.Response); 115switch (message.Response.Status) 118return ResponseWithHeaders.FromValue(headers, message.Response); 120throw ClientDiagnostics.CreateRequestFailedException(message.Response); 226var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response); 227switch (message.Response.Status) 232using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 234return ResponseWithHeaders.FromValue(value, headers, message.Response); 237throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 297var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return ResponseWithHeaders.FromValue(value, headers, message.Response); 308throw ClientDiagnostics.CreateRequestFailedException(message.Response); 337var headers = new DocumentTranslationGetDocumentStatusHeaders(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return ResponseWithHeaders.FromValue(value, headers, message.Response); 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 360var headers = new DocumentTranslationGetDocumentStatusHeaders(message.Response); 361switch (message.Response.Status) 366using var document = JsonDocument.Parse(message.Response.ContentStream); 368return ResponseWithHeaders.FromValue(value, headers, message.Response); 371throw ClientDiagnostics.CreateRequestFailedException(message.Response); 400var headers = new DocumentTranslationGetTranslationStatusHeaders(message.Response); 401switch (message.Response.Status) 406using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 408return ResponseWithHeaders.FromValue(value, headers, message.Response); 411throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 425var headers = new DocumentTranslationGetTranslationStatusHeaders(message.Response); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return ResponseWithHeaders.FromValue(value, headers, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw ClientDiagnostics.CreateRequestFailedException(message.Response); 611var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return ResponseWithHeaders.FromValue(value, headers, message.Response); 622throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 680var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response); 681switch (message.Response.Status) 686using var document = JsonDocument.Parse(message.Response.ContentStream); 688return ResponseWithHeaders.FromValue(value, headers, message.Response); 691throw ClientDiagnostics.CreateRequestFailedException(message.Response); 718var headers = new DocumentTranslationGetSupportedDocumentFormatsHeaders(message.Response); 719switch (message.Response.Status) 724using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 726return ResponseWithHeaders.FromValue(value, headers, message.Response); 729throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 742var headers = new DocumentTranslationGetSupportedDocumentFormatsHeaders(message.Response); 743switch (message.Response.Status) 748using var document = JsonDocument.Parse(message.Response.ContentStream); 750return ResponseWithHeaders.FromValue(value, headers, message.Response); 753throw ClientDiagnostics.CreateRequestFailedException(message.Response); 780var headers = new DocumentTranslationGetSupportedGlossaryFormatsHeaders(message.Response); 781switch (message.Response.Status) 786using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 788return ResponseWithHeaders.FromValue(value, headers, message.Response); 791throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 804var headers = new DocumentTranslationGetSupportedGlossaryFormatsHeaders(message.Response); 805switch (message.Response.Status) 810using var document = JsonDocument.Parse(message.Response.ContentStream); 812return ResponseWithHeaders.FromValue(value, headers, message.Response); 815throw ClientDiagnostics.CreateRequestFailedException(message.Response); 839var headers = new DocumentTranslationGetSupportedStorageSourcesHeaders(message.Response); 840switch (message.Response.Status) 845using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 847return ResponseWithHeaders.FromValue(value, headers, message.Response); 850throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 860var headers = new DocumentTranslationGetSupportedStorageSourcesHeaders(message.Response); 861switch (message.Response.Status) 866using var document = JsonDocument.Parse(message.Response.ContentStream); 868return ResponseWithHeaders.FromValue(value, headers, message.Response); 871throw ClientDiagnostics.CreateRequestFailedException(message.Response); 952var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response); 953switch (message.Response.Status) 958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 960return ResponseWithHeaders.FromValue(value, headers, message.Response); 963throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1030var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response); 1031switch (message.Response.Status) 1036using var document = JsonDocument.Parse(message.Response.ContentStream); 1038return ResponseWithHeaders.FromValue(value, headers, message.Response); 1041throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1120var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response); 1121switch (message.Response.Status) 1126using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1128return ResponseWithHeaders.FromValue(value, headers, message.Response); 1131throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1196var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response); 1197switch (message.Response.Status) 1202using var document = JsonDocument.Parse(message.Response.ContentStream); 1204return ResponseWithHeaders.FromValue(value, headers, message.Response); 1207throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Purview.Account (12)
Generated\PurviewAccountClient.cs (1)
1252return message.Response.Status switch
Generated\PurviewCollection.cs (2)
713return message.Response.Status switch 726return message.Response.Status switch
Generated\PurviewResourceSetRule.cs (2)
904return message.Response.Status switch 917return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Purview.Administration (14)
Generated\PurviewAccountClient.cs (1)
1231return message.Response.Status switch
Generated\PurviewCollection.cs (2)
695return message.Response.Status switch 708return message.Response.Status switch
Generated\PurviewMetadataPolicyClient.cs (1)
572return message.Response.Status switch
Generated\PurviewMetadataRolesClient.cs (1)
180return message.Response.Status switch
Generated\PurviewResourceSetRule.cs (2)
888return message.Response.Status switch 901return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Purview.Catalog (19)
Generated\PurviewCatalogClient.cs (1)
542return message.Response.Status switch
Generated\PurviewCollections.cs (1)
876return message.Response.Status switch
Generated\PurviewEntities.cs (2)
3982return message.Response.Status switch 3995return message.Response.Status switch
Generated\PurviewGlossaries.cs (3)
7426return message.Response.Status switch 7439return message.Response.Status switch 7452return message.Response.Status switch
Generated\PurviewLineages.cs (1)
364return message.Response.Status switch
Generated\PurviewRelationships.cs (2)
609return message.Response.Status switch 622return message.Response.Status switch
Generated\PurviewTypes.cs (2)
6535return message.Response.Status switch 6548return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Purview.Scanning (21)
Generated\PurviewClassificationRuleClient.cs (4)
687return message.Response.Status switch 700return message.Response.Status switch 714return message.Response.Status switch 728return message.Response.Status switch
Generated\PurviewDataSourceClient.cs (3)
1015return message.Response.Status switch 1029return message.Response.Status switch 1042return message.Response.Status switch
Generated\PurviewScanClient.cs (4)
2095return message.Response.Status switch 2108return message.Response.Status switch 2122return message.Response.Status switch 2136return message.Response.Status switch
Generated\PurviewScanningServiceClient.cs (3)
2130return message.Response.Status switch 2143return message.Response.Status switch 2157return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Synapse.AccessControl (10)
Generated\RoleAssignmentsClient.cs (2)
728return message.Response.Status switch 741return message.Response.Status switch
Generated\RoleDefinitionsClient.cs (1)
422return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Synapse.Artifacts (763)
Generated\BigDataPoolsRestClient.cs (16)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 121switch (message.Response.Status) 126using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 128return Response.FromValue(value, message.Response); 131throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataFlowDebugSessionRestClient.cs (46)
70var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response); 71switch (message.Response.Status) 75return ResponseWithHeaders.FromValue(headers, message.Response); 77throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response); 95switch (message.Response.Status) 99return ResponseWithHeaders.FromValue(headers, message.Response); 101throw ClientDiagnostics.CreateRequestFailedException(message.Response); 125switch (message.Response.Status) 130using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 132return Response.FromValue(value, message.Response); 135throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw ClientDiagnostics.CreateRequestFailedException(message.Response); 190switch (message.Response.Status) 195using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 197return Response.FromValue(value, message.Response); 200throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 217switch (message.Response.Status) 222using var document = JsonDocument.Parse(message.Response.ContentStream); 224return Response.FromValue(value, message.Response); 227throw ClientDiagnostics.CreateRequestFailedException(message.Response); 262switch (message.Response.Status) 265return message.Response; 267throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 284switch (message.Response.Status) 287return message.Response; 289throw ClientDiagnostics.CreateRequestFailedException(message.Response); 324var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response); 325switch (message.Response.Status) 329return ResponseWithHeaders.FromValue(headers, message.Response); 331throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 348var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response); 349switch (message.Response.Status) 353return ResponseWithHeaders.FromValue(headers, message.Response); 355throw ClientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 392return Response.FromValue(value, message.Response); 395throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 412switch (message.Response.Status) 417using var document = JsonDocument.Parse(message.Response.ContentStream); 419return Response.FromValue(value, message.Response); 422throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataFlowRestClient.cs (42)
81switch (message.Response.Status) 85return message.Response; 87throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 114return message.Response; 116throw ClientDiagnostics.CreateRequestFailedException(message.Response); 153switch (message.Response.Status) 158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 160return Response.FromValue(value, message.Response); 163throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 181switch (message.Response.Status) 186using var document = JsonDocument.Parse(message.Response.ContentStream); 188return Response.FromValue(value, message.Response); 191throw ClientDiagnostics.CreateRequestFailedException(message.Response); 223switch (message.Response.Status) 228return message.Response; 230throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 252return message.Response; 254throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 300return message.Response; 302throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 324switch (message.Response.Status) 328return message.Response; 330throw ClientDiagnostics.CreateRequestFailedException(message.Response); 354switch (message.Response.Status) 359using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 361return Response.FromValue(value, message.Response); 364throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 374switch (message.Response.Status) 379using var document = JsonDocument.Parse(message.Response.ContentStream); 381return Response.FromValue(value, message.Response); 384throw ClientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 419using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 421return Response.FromValue(value, message.Response); 424throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 441switch (message.Response.Status) 446using var document = JsonDocument.Parse(message.Response.ContentStream); 448return Response.FromValue(value, message.Response); 451throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatasetRestClient.cs (44)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 139return message.Response; 141throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 168return message.Response; 170throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217return Response.FromValue((DatasetResource)null, message.Response); 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247return Response.FromValue((DatasetResource)null, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response); 281switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310return message.Response; 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 354switch (message.Response.Status) 358return message.Response; 360throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 386return message.Response; 388throw ClientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 445switch (message.Response.Status) 450using var document = JsonDocument.Parse(message.Response.ContentStream); 452return Response.FromValue(value, message.Response); 455throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IntegrationRuntimesRestClient.cs (16)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 121switch (message.Response.Status) 126using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 128return Response.FromValue(value, message.Response); 131throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\KqlScriptRestClient.cs (26)
76switch (message.Response.Status) 80return message.Response; 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 104switch (message.Response.Status) 108return message.Response; 110throw ClientDiagnostics.CreateRequestFailedException(message.Response); 142switch (message.Response.Status) 147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 149return Response.FromValue(value, message.Response); 152throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 169switch (message.Response.Status) 174using var document = JsonDocument.Parse(message.Response.ContentStream); 176return Response.FromValue(value, message.Response); 179throw ClientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 216return message.Response; 218throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 312switch (message.Response.Status) 316return message.Response; 318throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\KqlScriptsRestClient.cs (16)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 119switch (message.Response.Status) 124using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 126return Response.FromValue(value, message.Response); 129throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 151using var document = JsonDocument.Parse(message.Response.ContentStream); 153return Response.FromValue(value, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LibraryRestClient.cs (62)
60switch (message.Response.Status) 65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 67return Response.FromValue(value, message.Response); 70throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 80switch (message.Response.Status) 85using var document = JsonDocument.Parse(message.Response.ContentStream); 87return Response.FromValue(value, message.Response); 90throw ClientDiagnostics.CreateRequestFailedException(message.Response); 123switch (message.Response.Status) 127return message.Response; 129throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 150return message.Response; 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 184switch (message.Response.Status) 189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 191return Response.FromValue<object>(value, message.Response); 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue<object>(value, message.Response); 201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 218switch (message.Response.Status) 223using var document = JsonDocument.Parse(message.Response.ContentStream); 225return Response.FromValue<object>(value, message.Response); 230using var document = JsonDocument.Parse(message.Response.ContentStream); 232return Response.FromValue<object>(value, message.Response); 235throw ClientDiagnostics.CreateRequestFailedException(message.Response); 267switch (message.Response.Status) 272return message.Response; 274throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 291switch (message.Response.Status) 296return message.Response; 298throw ClientDiagnostics.CreateRequestFailedException(message.Response); 330switch (message.Response.Status) 335using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 337return Response.FromValue(value, message.Response); 340return Response.FromValue((LibraryResource)null, message.Response); 342throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 364using var document = JsonDocument.Parse(message.Response.ContentStream); 366return Response.FromValue(value, message.Response); 369return Response.FromValue((LibraryResource)null, message.Response); 371throw ClientDiagnostics.CreateRequestFailedException(message.Response); 403switch (message.Response.Status) 407return message.Response; 409throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 430return message.Response; 432throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 480return message.Response; 482throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 505switch (message.Response.Status) 508return message.Response; 510throw ClientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567switch (message.Response.Status) 572using var document = JsonDocument.Parse(message.Response.ContentStream); 574return Response.FromValue(value, message.Response); 577throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LinkedServiceRestClient.cs (44)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 139return message.Response; 141throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 168return message.Response; 170throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217return Response.FromValue((LinkedServiceResource)null, message.Response); 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247return Response.FromValue((LinkedServiceResource)null, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response); 281switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310return message.Response; 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 354switch (message.Response.Status) 358return message.Response; 360throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 386return message.Response; 388throw ClientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 445switch (message.Response.Status) 450using var document = JsonDocument.Parse(message.Response.ContentStream); 452return Response.FromValue(value, message.Response); 455throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetastoreRestClient.cs (30)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 108switch (message.Response.Status) 113using var document = JsonDocument.Parse(message.Response.ContentStream); 115return Response.FromValue(value, message.Response); 118throw ClientDiagnostics.CreateRequestFailedException(message.Response); 150switch (message.Response.Status) 155using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 157return Response.FromValue(value, message.Response); 160throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 177switch (message.Response.Status) 182using var document = JsonDocument.Parse(message.Response.ContentStream); 184return Response.FromValue(value, message.Response); 187throw ClientDiagnostics.CreateRequestFailedException(message.Response); 228switch (message.Response.Status) 233using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 235return Response.FromValue(value, message.Response); 238throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 265using var document = JsonDocument.Parse(message.Response.ContentStream); 267return Response.FromValue(value, message.Response); 270throw ClientDiagnostics.CreateRequestFailedException(message.Response); 302switch (message.Response.Status) 305return message.Response; 307throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 324switch (message.Response.Status) 327return message.Response; 329throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebookOperationResultRestClient.cs (6)
65switch (message.Response.Status) 71return message.Response; 73throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 90switch (message.Response.Status) 96return message.Response; 98throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebookRestClient.cs (60)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 113switch (message.Response.Status) 118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 120return Response.FromValue(value, message.Response); 123throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw ClientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 193return message.Response; 195throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 218switch (message.Response.Status) 222return message.Response; 224throw ClientDiagnostics.CreateRequestFailedException(message.Response); 261switch (message.Response.Status) 266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 268return Response.FromValue(value, message.Response); 271return Response.FromValue((NotebookResource)null, message.Response); 273throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 291switch (message.Response.Status) 296using var document = JsonDocument.Parse(message.Response.ContentStream); 298return Response.FromValue(value, message.Response); 301return Response.FromValue((NotebookResource)null, message.Response); 303throw ClientDiagnostics.CreateRequestFailedException(message.Response); 335switch (message.Response.Status) 340return message.Response; 342throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 364return message.Response; 366throw ClientDiagnostics.CreateRequestFailedException(message.Response); 408switch (message.Response.Status) 412return message.Response; 414throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 436switch (message.Response.Status) 440return message.Response; 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 472switch (message.Response.Status) 477using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 479return Response.FromValue(value, message.Response); 482throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 499switch (message.Response.Status) 504using var document = JsonDocument.Parse(message.Response.ContentStream); 506return Response.FromValue(value, message.Response); 509throw ClientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 546return Response.FromValue(value, message.Response); 549throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PipelineRestClient.cs (52)
60switch (message.Response.Status) 65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 67return Response.FromValue(value, message.Response); 70throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 80switch (message.Response.Status) 85using var document = JsonDocument.Parse(message.Response.ContentStream); 87return Response.FromValue(value, message.Response); 90throw ClientDiagnostics.CreateRequestFailedException(message.Response); 136switch (message.Response.Status) 140return message.Response; 142throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 165switch (message.Response.Status) 169return message.Response; 171throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218return Response.FromValue((PipelineResource)null, message.Response); 220throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((PipelineResource)null, message.Response); 250throw ClientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 287return message.Response; 289throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 306switch (message.Response.Status) 311return message.Response; 313throw ClientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 359return message.Response; 361throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 383switch (message.Response.Status) 387return message.Response; 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 458return Response.FromValue(value, message.Response); 461throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482switch (message.Response.Status) 487using var document = JsonDocument.Parse(message.Response.ContentStream); 489return Response.FromValue(value, message.Response); 492throw ClientDiagnostics.CreateRequestFailedException(message.Response); 522switch (message.Response.Status) 527using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 529return Response.FromValue(value, message.Response); 532throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 549switch (message.Response.Status) 554using var document = JsonDocument.Parse(message.Response.ContentStream); 556return Response.FromValue(value, message.Response); 559throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PipelineRunRestClient.cs (30)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 102using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw ClientDiagnostics.CreateRequestFailedException(message.Response); 139switch (message.Response.Status) 144using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 146return Response.FromValue(value, message.Response); 149throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166switch (message.Response.Status) 171using var document = JsonDocument.Parse(message.Response.ContentStream); 173return Response.FromValue(value, message.Response); 176throw ClientDiagnostics.CreateRequestFailedException(message.Response); 225switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return Response.FromValue(value, message.Response); 235throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 262switch (message.Response.Status) 267using var document = JsonDocument.Parse(message.Response.ContentStream); 269return Response.FromValue(value, message.Response); 272throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 313return message.Response; 315throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 336return message.Response; 338throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkConfigurationRestClient.cs (44)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 139return message.Response; 141throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 168return message.Response; 170throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217return Response.FromValue((SparkConfigurationResource)null, message.Response); 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247return Response.FromValue((SparkConfigurationResource)null, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response); 281switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310return message.Response; 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 354switch (message.Response.Status) 358return message.Response; 360throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 386return message.Response; 388throw ClientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 445switch (message.Response.Status) 450using var document = JsonDocument.Parse(message.Response.ContentStream); 452return Response.FromValue(value, message.Response); 455throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkJobDefinitionRestClient.cs (56)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 139return message.Response; 141throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 168return message.Response; 170throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217return Response.FromValue((SparkJobDefinitionResource)null, message.Response); 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247return Response.FromValue((SparkJobDefinitionResource)null, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response); 281switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310return message.Response; 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 349return message.Response; 351throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 368switch (message.Response.Status) 372return message.Response; 374throw ClientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 420return message.Response; 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 444switch (message.Response.Status) 448return message.Response; 450throw ClientDiagnostics.CreateRequestFailedException(message.Response); 485switch (message.Response.Status) 489return message.Response; 491throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 512return message.Response; 514throw ClientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 571switch (message.Response.Status) 576using var document = JsonDocument.Parse(message.Response.ContentStream); 578return Response.FromValue(value, message.Response); 581throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SqlPoolsRestClient.cs (16)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 121switch (message.Response.Status) 126using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 128return Response.FromValue(value, message.Response); 131throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 153using var document = JsonDocument.Parse(message.Response.ContentStream); 155return Response.FromValue(value, message.Response); 158throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SqlScriptRestClient.cs (44)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 139return message.Response; 141throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 168return message.Response; 170throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217return Response.FromValue((SqlScriptResource)null, message.Response); 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247return Response.FromValue((SqlScriptResource)null, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response); 281switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310return message.Response; 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 354switch (message.Response.Status) 358return message.Response; 360throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 386return message.Response; 388throw ClientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 445switch (message.Response.Status) 450using var document = JsonDocument.Parse(message.Response.ContentStream); 452return Response.FromValue(value, message.Response); 455throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TriggerRestClient.cs (70)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 139return message.Response; 141throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 168return message.Response; 170throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217return Response.FromValue((TriggerResource)null, message.Response); 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247return Response.FromValue((TriggerResource)null, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response); 281switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310return message.Response; 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 349return message.Response; 351throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 368switch (message.Response.Status) 372return message.Response; 374throw ClientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 414return Response.FromValue(value, message.Response); 417throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 434switch (message.Response.Status) 439using var document = JsonDocument.Parse(message.Response.ContentStream); 441return Response.FromValue(value, message.Response); 444throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 481return message.Response; 483throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 500switch (message.Response.Status) 504return message.Response; 506throw ClientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 542return message.Response; 544throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 561switch (message.Response.Status) 564return message.Response; 566throw ClientDiagnostics.CreateRequestFailedException(message.Response); 599switch (message.Response.Status) 602return message.Response; 604throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 621switch (message.Response.Status) 624return message.Response; 626throw ClientDiagnostics.CreateRequestFailedException(message.Response); 656switch (message.Response.Status) 661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 663return Response.FromValue(value, message.Response); 666throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 683switch (message.Response.Status) 688using var document = JsonDocument.Parse(message.Response.ContentStream); 690return Response.FromValue(value, message.Response); 693throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TriggerRunRestClient.cs (20)
75switch (message.Response.Status) 78return message.Response; 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 102switch (message.Response.Status) 105return message.Response; 107throw ClientDiagnostics.CreateRequestFailedException(message.Response); 147switch (message.Response.Status) 150return message.Response; 152throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 174switch (message.Response.Status) 177return message.Response; 179throw ClientDiagnostics.CreateRequestFailedException(message.Response); 214switch (message.Response.Status) 219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 221return Response.FromValue(value, message.Response); 224throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceGitRepoManagementRestClient.cs (8)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 102using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceRestClient.cs (8)
59switch (message.Response.Status) 64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 66return Response.FromValue(value, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 79switch (message.Response.Status) 84using var document = JsonDocument.Parse(message.Response.ContentStream); 86return Response.FromValue(value, message.Response); 89throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Synapse.ManagedPrivateEndpoints (45)
Generated\ManagedPrivateEndpointsRestClient.cs (38)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw ClientDiagnostics.CreateRequestFailedException(message.Response); 167switch (message.Response.Status) 172using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 174return Response.FromValue(value, message.Response); 177throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 204switch (message.Response.Status) 209using var document = JsonDocument.Parse(message.Response.ContentStream); 211return Response.FromValue(value, message.Response); 214throw ClientDiagnostics.CreateRequestFailedException(message.Response); 252switch (message.Response.Status) 256return message.Response; 258throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280switch (message.Response.Status) 284return message.Response; 286throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 326return Response.FromValue(value, message.Response); 329throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 346switch (message.Response.Status) 351using var document = JsonDocument.Parse(message.Response.ContentStream); 353return Response.FromValue(value, message.Response); 356throw ClientDiagnostics.CreateRequestFailedException(message.Response); 391switch (message.Response.Status) 396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 398return Response.FromValue(value, message.Response); 401throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 423switch (message.Response.Status) 428using var document = JsonDocument.Parse(message.Response.ContentStream); 430return Response.FromValue(value, message.Response); 433throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Synapse.Monitoring (23)
Generated\MonitoringRestClient.cs (16)
62switch (message.Response.Status) 67using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 69return Response.FromValue(value, message.Response); 72throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 82switch (message.Response.Status) 87using var document = JsonDocument.Parse(message.Response.ContentStream); 89return Response.FromValue(value, message.Response); 92throw ClientDiagnostics.CreateRequestFailedException(message.Response); 131switch (message.Response.Status) 136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 138return Response.FromValue(value, message.Response); 141throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 159using var document = JsonDocument.Parse(message.Response.ContentStream); 161return Response.FromValue(value, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Analytics.Synapse.Spark (105)
Generated\SparkBatchRestClient.cs (30)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 117using var document = JsonDocument.Parse(message.Response.ContentStream); 119return Response.FromValue(value, message.Response); 122throw ClientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status) 170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 172return Response.FromValue(value, message.Response); 175throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 193switch (message.Response.Status) 198using var document = JsonDocument.Parse(message.Response.ContentStream); 200return Response.FromValue(value, message.Response); 203throw ClientDiagnostics.CreateRequestFailedException(message.Response); 237switch (message.Response.Status) 242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 244return Response.FromValue(value, message.Response); 247throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269throw ClientDiagnostics.CreateRequestFailedException(message.Response); 297switch (message.Response.Status) 300return message.Response; 302throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 313switch (message.Response.Status) 316return message.Response; 318throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkSessionRestClient.cs (68)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 117using var document = JsonDocument.Parse(message.Response.ContentStream); 119return Response.FromValue(value, message.Response); 122throw ClientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status) 170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 172return Response.FromValue(value, message.Response); 175throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 193switch (message.Response.Status) 198using var document = JsonDocument.Parse(message.Response.ContentStream); 200return Response.FromValue(value, message.Response); 203throw ClientDiagnostics.CreateRequestFailedException(message.Response); 237switch (message.Response.Status) 242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 244return Response.FromValue(value, message.Response); 247throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269throw ClientDiagnostics.CreateRequestFailedException(message.Response); 297switch (message.Response.Status) 300return message.Response; 302throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 313switch (message.Response.Status) 316return message.Response; 318throw ClientDiagnostics.CreateRequestFailedException(message.Response); 347switch (message.Response.Status) 350return message.Response; 352throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 363switch (message.Response.Status) 366return message.Response; 368throw ClientDiagnostics.CreateRequestFailedException(message.Response); 398switch (message.Response.Status) 403using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 405return Response.FromValue(value, message.Response); 408throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424using var document = JsonDocument.Parse(message.Response.ContentStream); 426return Response.FromValue(value, message.Response); 429throw ClientDiagnostics.CreateRequestFailedException(message.Response); 470switch (message.Response.Status) 475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 477return Response.FromValue(value, message.Response); 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 498switch (message.Response.Status) 503using var document = JsonDocument.Parse(message.Response.ContentStream); 505return Response.FromValue(value, message.Response); 508throw ClientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 562switch (message.Response.Status) 567using var document = JsonDocument.Parse(message.Response.ContentStream); 569return Response.FromValue(value, message.Response); 572throw ClientDiagnostics.CreateRequestFailedException(message.Response); 605switch (message.Response.Status) 610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 612return Response.FromValue(value, message.Response); 615throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 627switch (message.Response.Status) 632using var document = JsonDocument.Parse(message.Response.ContentStream); 634return Response.FromValue(value, message.Response); 637throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Communication.CallingServer (121)
Downloader\ContentDownloader.cs (6)
78switch (message.Response.Status) 84return Response.FromValue(value, message.Response); 87throw await _client._clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107switch (message.Response.Status) 113return Response.FromValue(value, message.Response); 116throw _client._clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CallConnectionsRestClient.cs (44)
109switch (message.Response.Status) 114using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 116return Response.FromValue(value, message.Response); 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw ClientDiagnostics.CreateRequestFailedException(message.Response); 193switch (message.Response.Status) 196return message.Response; 198throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215switch (message.Response.Status) 218return message.Response; 220throw ClientDiagnostics.CreateRequestFailedException(message.Response); 275switch (message.Response.Status) 280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 282return Response.FromValue(value, message.Response); 285throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 312switch (message.Response.Status) 317using var document = JsonDocument.Parse(message.Response.ContentStream); 319return Response.FromValue(value, message.Response); 322throw ClientDiagnostics.CreateRequestFailedException(message.Response); 364switch (message.Response.Status) 369using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 371return Response.FromValue(value, message.Response); 374throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 392switch (message.Response.Status) 397using var document = JsonDocument.Parse(message.Response.ContentStream); 399return Response.FromValue(value, message.Response); 402throw ClientDiagnostics.CreateRequestFailedException(message.Response); 450switch (message.Response.Status) 455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 457return Response.FromValue(value, message.Response); 460throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw ClientDiagnostics.CreateRequestFailedException(message.Response); 530switch (message.Response.Status) 533return message.Response; 535throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 557switch (message.Response.Status) 560return message.Response; 562throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerCallsRestClient.cs (64)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 118switch (message.Response.Status) 123using var document = JsonDocument.Parse(message.Response.ContentStream); 125return Response.FromValue(value, message.Response); 128throw ClientDiagnostics.CreateRequestFailedException(message.Response); 167switch (message.Response.Status) 170return message.Response; 172throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 194switch (message.Response.Status) 197return message.Response; 199throw ClientDiagnostics.CreateRequestFailedException(message.Response); 247switch (message.Response.Status) 252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 254return Response.FromValue(value, message.Response); 257throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 278switch (message.Response.Status) 283using var document = JsonDocument.Parse(message.Response.ContentStream); 285return Response.FromValue(value, message.Response); 288throw ClientDiagnostics.CreateRequestFailedException(message.Response); 327switch (message.Response.Status) 332using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 334return Response.FromValue(value, message.Response); 337throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 364using var document = JsonDocument.Parse(message.Response.ContentStream); 366return Response.FromValue(value, message.Response); 369throw ClientDiagnostics.CreateRequestFailedException(message.Response); 408switch (message.Response.Status) 411return message.Response; 413throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 435switch (message.Response.Status) 438return message.Response; 440throw ClientDiagnostics.CreateRequestFailedException(message.Response); 480switch (message.Response.Status) 483return message.Response; 485throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 510return message.Response; 512throw ClientDiagnostics.CreateRequestFailedException(message.Response); 552switch (message.Response.Status) 555return message.Response; 557throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 579switch (message.Response.Status) 582return message.Response; 584throw ClientDiagnostics.CreateRequestFailedException(message.Response); 653switch (message.Response.Status) 658using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 660return Response.FromValue(value, message.Response); 663throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 693switch (message.Response.Status) 698using var document = JsonDocument.Parse(message.Response.ContentStream); 700return Response.FromValue(value, message.Response); 703throw ClientDiagnostics.CreateRequestFailedException(message.Response); 758switch (message.Response.Status) 763using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 765return Response.FromValue(value, message.Response); 768throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 795switch (message.Response.Status) 800using var document = JsonDocument.Parse(message.Response.ContentStream); 802return Response.FromValue(value, message.Response); 805throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Communication.Chat (153)
Generated\ChatRestClient.cs (30)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 117switch (message.Response.Status) 122using var document = JsonDocument.Parse(message.Response.ContentStream); 124return Response.FromValue(value, message.Response); 127throw ClientDiagnostics.CreateRequestFailedException(message.Response); 161switch (message.Response.Status) 166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 168return Response.FromValue(value, message.Response); 171throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 183switch (message.Response.Status) 188using var document = JsonDocument.Parse(message.Response.ContentStream); 190return Response.FromValue(value, message.Response); 193throw ClientDiagnostics.CreateRequestFailedException(message.Response); 225switch (message.Response.Status) 228return message.Response; 230throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 250return message.Response; 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 289using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 291return Response.FromValue(value, message.Response); 294throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 313switch (message.Response.Status) 318using var document = JsonDocument.Parse(message.Response.ContentStream); 320return Response.FromValue(value, message.Response); 323throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ChatThreadRestClient.cs (116)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 117using var document = JsonDocument.Parse(message.Response.ContentStream); 119return Response.FromValue(value, message.Response); 122throw ClientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status) 168return message.Response; 170throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 192switch (message.Response.Status) 195return message.Response; 197throw ClientDiagnostics.CreateRequestFailedException(message.Response); 255switch (message.Response.Status) 260using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 262return Response.FromValue(value, message.Response); 265throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 290switch (message.Response.Status) 295using var document = JsonDocument.Parse(message.Response.ContentStream); 297return Response.FromValue(value, message.Response); 300throw ClientDiagnostics.CreateRequestFailedException(message.Response); 343switch (message.Response.Status) 348using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 350return Response.FromValue(value, message.Response); 353throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 372switch (message.Response.Status) 377using var document = JsonDocument.Parse(message.Response.ContentStream); 379return Response.FromValue(value, message.Response); 382throw ClientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 428return Response.FromValue(value, message.Response); 431throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 458using var document = JsonDocument.Parse(message.Response.ContentStream); 460return Response.FromValue(value, message.Response); 463throw ClientDiagnostics.CreateRequestFailedException(message.Response); 520switch (message.Response.Status) 523return message.Response; 525throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 549switch (message.Response.Status) 552return message.Response; 554throw ClientDiagnostics.CreateRequestFailedException(message.Response); 593switch (message.Response.Status) 596return message.Response; 598throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 620switch (message.Response.Status) 623return message.Response; 625throw ClientDiagnostics.CreateRequestFailedException(message.Response); 668switch (message.Response.Status) 673using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 675return Response.FromValue(value, message.Response); 678throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 697switch (message.Response.Status) 702using var document = JsonDocument.Parse(message.Response.ContentStream); 704return Response.FromValue(value, message.Response); 707throw ClientDiagnostics.CreateRequestFailedException(message.Response); 755switch (message.Response.Status) 758return message.Response; 760throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 781switch (message.Response.Status) 784return message.Response; 786throw ClientDiagnostics.CreateRequestFailedException(message.Response); 829switch (message.Response.Status) 834using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 836return Response.FromValue(value, message.Response); 839throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 861switch (message.Response.Status) 866using var document = JsonDocument.Parse(message.Response.ContentStream); 868return Response.FromValue(value, message.Response); 871throw ClientDiagnostics.CreateRequestFailedException(message.Response); 912switch (message.Response.Status) 915return message.Response; 917throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 935switch (message.Response.Status) 938return message.Response; 940throw ClientDiagnostics.CreateRequestFailedException(message.Response); 972switch (message.Response.Status) 977using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 979return Response.FromValue(value, message.Response); 982throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 999switch (message.Response.Status) 1004using var document = JsonDocument.Parse(message.Response.ContentStream); 1006return Response.FromValue(value, message.Response); 1009throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1051switch (message.Response.Status) 1054return message.Response; 1056throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1074switch (message.Response.Status) 1077return message.Response; 1079throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1116switch (message.Response.Status) 1121using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1123return Response.FromValue(value, message.Response); 1126throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1150switch (message.Response.Status) 1155using var document = JsonDocument.Parse(message.Response.ContentStream); 1157return Response.FromValue(value, message.Response); 1160throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1197switch (message.Response.Status) 1202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1204return Response.FromValue(value, message.Response); 1207throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1231switch (message.Response.Status) 1236using var document = JsonDocument.Parse(message.Response.ContentStream); 1238return Response.FromValue(value, message.Response); 1241throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1278switch (message.Response.Status) 1283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1285return Response.FromValue(value, message.Response); 1288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1312switch (message.Response.Status) 1317using var document = JsonDocument.Parse(message.Response.ContentStream); 1319return Response.FromValue(value, message.Response); 1322throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Communication.Identity (43)
Generated\CommunicationIdentityRestClient.cs (36)
78switch (message.Response.Status) 83using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 85return Response.FromValue(value, message.Response); 88throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 99switch (message.Response.Status) 104using var document = JsonDocument.Parse(message.Response.ContentStream); 106return Response.FromValue(value, message.Response); 109throw ClientDiagnostics.CreateRequestFailedException(message.Response); 141switch (message.Response.Status) 144return message.Response; 146throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 163switch (message.Response.Status) 166return message.Response; 168throw ClientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 204return message.Response; 206throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 226return message.Response; 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 264switch (message.Response.Status) 269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 271return Response.FromValue(value, message.Response); 274throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 291switch (message.Response.Status) 296using var document = JsonDocument.Parse(message.Response.ContentStream); 298return Response.FromValue(value, message.Response); 301throw ClientDiagnostics.CreateRequestFailedException(message.Response); 344switch (message.Response.Status) 349using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 351return Response.FromValue(value, message.Response); 354throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 381using var document = JsonDocument.Parse(message.Response.ContentStream); 383return Response.FromValue(value, message.Response); 386throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Communication.NetworkTraversal (15)
Generated\CommunicationNetworkTraversalRestClient.cs (8)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Communication.PhoneNumbers (87)
Generated\InternalPhoneNumbersRestClient.cs (80)
79var headers = new PhoneNumbersSearchAvailablePhoneNumbersHeaders(message.Response); 80switch (message.Response.Status) 83return ResponseWithHeaders.FromValue(headers, message.Response); 85throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107var headers = new PhoneNumbersSearchAvailablePhoneNumbersHeaders(message.Response); 108switch (message.Response.Status) 111return ResponseWithHeaders.FromValue(headers, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215var headers = new PhoneNumbersPurchasePhoneNumbersHeaders(message.Response); 216switch (message.Response.Status) 219return ResponseWithHeaders.FromValue(headers, message.Response); 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232var headers = new PhoneNumbersPurchasePhoneNumbersHeaders(message.Response); 233switch (message.Response.Status) 236return ResponseWithHeaders.FromValue(headers, message.Response); 238throw ClientDiagnostics.CreateRequestFailedException(message.Response); 270var headers = new PhoneNumbersGetOperationHeaders(message.Response); 271switch (message.Response.Status) 276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 278return ResponseWithHeaders.FromValue(value, headers, message.Response); 281throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298var headers = new PhoneNumbersGetOperationHeaders(message.Response); 299switch (message.Response.Status) 304using var document = JsonDocument.Parse(message.Response.ContentStream); 306return ResponseWithHeaders.FromValue(value, headers, message.Response); 309throw ClientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 344return message.Response; 346throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 363switch (message.Response.Status) 366return message.Response; 368throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412var headers = new PhoneNumbersUpdateCapabilitiesHeaders(message.Response); 413switch (message.Response.Status) 416return ResponseWithHeaders.FromValue(headers, message.Response); 418throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 437var headers = new PhoneNumbersUpdateCapabilitiesHeaders(message.Response); 438switch (message.Response.Status) 441return ResponseWithHeaders.FromValue(headers, message.Response); 443throw ClientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 507using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512throw ClientDiagnostics.CreateRequestFailedException(message.Response); 544var headers = new PhoneNumbersReleasePhoneNumberHeaders(message.Response); 545switch (message.Response.Status) 548return ResponseWithHeaders.FromValue(headers, message.Response); 550throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567var headers = new PhoneNumbersReleasePhoneNumberHeaders(message.Response); 568switch (message.Response.Status) 571return ResponseWithHeaders.FromValue(headers, message.Response); 573throw ClientDiagnostics.CreateRequestFailedException(message.Response); 607switch (message.Response.Status) 612using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 614return Response.FromValue(value, message.Response); 617throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 629switch (message.Response.Status) 634using var document = JsonDocument.Parse(message.Response.ContentStream); 636return Response.FromValue(value, message.Response); 639throw ClientDiagnostics.CreateRequestFailedException(message.Response); 671switch (message.Response.Status) 676using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 678return Response.FromValue(value, message.Response); 681throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 700switch (message.Response.Status) 705using var document = JsonDocument.Parse(message.Response.ContentStream); 707return Response.FromValue(value, message.Response); 710throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Communication.Sms (15)
Generated\SmsRestClient.cs (8)
90switch (message0.Response.Status) 95using var document = await JsonDocument.ParseAsync(message0.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message0.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message0.Response).ConfigureAwait(false); 128switch (message0.Response.Status) 133using var document = JsonDocument.Parse(message0.Response.ContentStream); 135return Response.FromValue(value, message0.Response); 138throw ClientDiagnostics.CreateRequestFailedException(message0.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Containers.ContainerRegistry (263)
Authentication\ContainerRegistryChallengeAuthenticationPolicy.cs (2)
86var service = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "service"); 87var scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope");
Generated\AuthenticationRestClient.cs (16)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 120switch (message.Response.Status) 125using var document = JsonDocument.Parse(message.Response.ContentStream); 127return Response.FromValue(value, message.Response); 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 179switch (message.Response.Status) 184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 186return Response.FromValue(value, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 217switch (message.Response.Status) 222using var document = JsonDocument.Parse(message.Response.ContentStream); 224return Response.FromValue(value, message.Response); 227throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRegistryBlobRestClient.cs (88)
72var headers = new ContainerRegistryBlobGetBlobHeaders(message.Response); 73switch (message.Response.Status) 78return ResponseWithHeaders.FromValue(value, headers, message.Response); 81return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response); 83throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105var headers = new ContainerRegistryBlobGetBlobHeaders(message.Response); 106switch (message.Response.Status) 111return ResponseWithHeaders.FromValue(value, headers, message.Response); 114return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response); 116throw ClientDiagnostics.CreateRequestFailedException(message.Response); 154var headers = new ContainerRegistryBlobCheckBlobExistsHeaders(message.Response); 155switch (message.Response.Status) 159return ResponseWithHeaders.FromValue(headers, message.Response); 161throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 183var headers = new ContainerRegistryBlobCheckBlobExistsHeaders(message.Response); 184switch (message.Response.Status) 188return ResponseWithHeaders.FromValue(headers, message.Response); 190throw ClientDiagnostics.CreateRequestFailedException(message.Response); 228var headers = new ContainerRegistryBlobDeleteBlobHeaders(message.Response); 229switch (message.Response.Status) 234return ResponseWithHeaders.FromValue(value, headers, message.Response); 237throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259var headers = new ContainerRegistryBlobDeleteBlobHeaders(message.Response); 260switch (message.Response.Status) 265return ResponseWithHeaders.FromValue(value, headers, message.Response); 268throw ClientDiagnostics.CreateRequestFailedException(message.Response); 312var headers = new ContainerRegistryBlobMountBlobHeaders(message.Response); 313switch (message.Response.Status) 316return ResponseWithHeaders.FromValue(headers, message.Response); 318throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 345var headers = new ContainerRegistryBlobMountBlobHeaders(message.Response); 346switch (message.Response.Status) 349return ResponseWithHeaders.FromValue(headers, message.Response); 351throw ClientDiagnostics.CreateRequestFailedException(message.Response); 382var headers = new ContainerRegistryBlobGetUploadStatusHeaders(message.Response); 383switch (message.Response.Status) 386return ResponseWithHeaders.FromValue(headers, message.Response); 388throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 405var headers = new ContainerRegistryBlobGetUploadStatusHeaders(message.Response); 406switch (message.Response.Status) 409return ResponseWithHeaders.FromValue(headers, message.Response); 411throw ClientDiagnostics.CreateRequestFailedException(message.Response); 449var headers = new ContainerRegistryBlobUploadChunkHeaders(message.Response); 450switch (message.Response.Status) 453return ResponseWithHeaders.FromValue(headers, message.Response); 455throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477var headers = new ContainerRegistryBlobUploadChunkHeaders(message.Response); 478switch (message.Response.Status) 481return ResponseWithHeaders.FromValue(headers, message.Response); 483throw ClientDiagnostics.CreateRequestFailedException(message.Response); 526var headers = new ContainerRegistryBlobCompleteUploadHeaders(message.Response); 527switch (message.Response.Status) 530return ResponseWithHeaders.FromValue(headers, message.Response); 532throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555var headers = new ContainerRegistryBlobCompleteUploadHeaders(message.Response); 556switch (message.Response.Status) 559return ResponseWithHeaders.FromValue(headers, message.Response); 561throw ClientDiagnostics.CreateRequestFailedException(message.Response); 592switch (message.Response.Status) 595return message.Response; 597throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 614switch (message.Response.Status) 617return message.Response; 619throw ClientDiagnostics.CreateRequestFailedException(message.Response); 651var headers = new ContainerRegistryBlobStartUploadHeaders(message.Response); 652switch (message.Response.Status) 655return ResponseWithHeaders.FromValue(headers, message.Response); 657throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674var headers = new ContainerRegistryBlobStartUploadHeaders(message.Response); 675switch (message.Response.Status) 678return ResponseWithHeaders.FromValue(headers, message.Response); 680throw ClientDiagnostics.CreateRequestFailedException(message.Response); 724var headers = new ContainerRegistryBlobGetChunkHeaders(message.Response); 725switch (message.Response.Status) 730return ResponseWithHeaders.FromValue(value, headers, message.Response); 733throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760var headers = new ContainerRegistryBlobGetChunkHeaders(message.Response); 761switch (message.Response.Status) 766return ResponseWithHeaders.FromValue(value, headers, message.Response); 769throw ClientDiagnostics.CreateRequestFailedException(message.Response); 813var headers = new ContainerRegistryBlobCheckChunkExistsHeaders(message.Response); 814switch (message.Response.Status) 817return ResponseWithHeaders.FromValue(headers, message.Response); 819throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 846var headers = new ContainerRegistryBlobCheckChunkExistsHeaders(message.Response); 847switch (message.Response.Status) 850return ResponseWithHeaders.FromValue(headers, message.Response); 852throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRegistryRestClient.cs (150)
60switch (message.Response.Status) 63return message.Response; 65throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 75switch (message.Response.Status) 78return message.Response; 80throw ClientDiagnostics.CreateRequestFailedException(message.Response); 123switch (message.Response.Status) 128using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 130return Response.FromValue(value, message.Response); 133throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 156switch (message.Response.Status) 161using var document = JsonDocument.Parse(message.Response.ContentStream); 163return Response.FromValue(value, message.Response); 166throw ClientDiagnostics.CreateRequestFailedException(message.Response); 213var headers = new ContainerRegistryCreateManifestHeaders(message.Response); 214switch (message.Response.Status) 219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 221return ResponseWithHeaders.FromValue(value, headers, message.Response); 224throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251var headers = new ContainerRegistryCreateManifestHeaders(message.Response); 252switch (message.Response.Status) 257using var document = JsonDocument.Parse(message.Response.ContentStream); 259return ResponseWithHeaders.FromValue(value, headers, message.Response); 262throw ClientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 304return message.Response; 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 368var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response); 369switch (message.Response.Status) 374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 376return ResponseWithHeaders.FromValue(value, headers, message.Response); 379throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 391var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response); 392switch (message.Response.Status) 397using var document = JsonDocument.Parse(message.Response.ContentStream); 399return ResponseWithHeaders.FromValue(value, headers, message.Response); 402throw ClientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 441return Response.FromValue(value, message.Response); 444throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 461switch (message.Response.Status) 466using var document = JsonDocument.Parse(message.Response.ContentStream); 468return Response.FromValue(value, message.Response); 471throw ClientDiagnostics.CreateRequestFailedException(message.Response); 503switch (message.Response.Status) 507return message.Response; 509throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 530return message.Response; 532throw ClientDiagnostics.CreateRequestFailedException(message.Response); 572switch (message.Response.Status) 577using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 579return Response.FromValue(value0, message.Response); 582throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 600switch (message.Response.Status) 605using var document = JsonDocument.Parse(message.Response.ContentStream); 607return Response.FromValue(value0, message.Response); 610throw ClientDiagnostics.CreateRequestFailedException(message.Response); 663var headers = new ContainerRegistryGetTagsHeaders(message.Response); 664switch (message.Response.Status) 669using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 671return ResponseWithHeaders.FromValue(value, headers, message.Response); 674throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 695var headers = new ContainerRegistryGetTagsHeaders(message.Response); 696switch (message.Response.Status) 701using var document = JsonDocument.Parse(message.Response.ContentStream); 703return ResponseWithHeaders.FromValue(value, headers, message.Response); 706throw ClientDiagnostics.CreateRequestFailedException(message.Response); 745switch (message.Response.Status) 750using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 752return Response.FromValue(value, message.Response); 755throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 777switch (message.Response.Status) 782using var document = JsonDocument.Parse(message.Response.ContentStream); 784return Response.FromValue(value, message.Response); 787throw ClientDiagnostics.CreateRequestFailedException(message.Response); 834switch (message.Response.Status) 839using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 841return Response.FromValue(value0, message.Response); 844throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 867switch (message.Response.Status) 872using var document = JsonDocument.Parse(message.Response.ContentStream); 874return Response.FromValue(value0, message.Response); 877throw ClientDiagnostics.CreateRequestFailedException(message.Response); 916switch (message.Response.Status) 920return message.Response; 922throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 944switch (message.Response.Status) 948return message.Response; 950throw ClientDiagnostics.CreateRequestFailedException(message.Response); 998var headers = new ContainerRegistryGetManifestsHeaders(message.Response); 999switch (message.Response.Status) 1004using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1006return ResponseWithHeaders.FromValue(value, headers, message.Response); 1009throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1029var headers = new ContainerRegistryGetManifestsHeaders(message.Response); 1030switch (message.Response.Status) 1035using var document = JsonDocument.Parse(message.Response.ContentStream); 1037return ResponseWithHeaders.FromValue(value, headers, message.Response); 1040throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1079switch (message.Response.Status) 1084using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1086return Response.FromValue(value, message.Response); 1089throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1111switch (message.Response.Status) 1116using var document = JsonDocument.Parse(message.Response.ContentStream); 1118return Response.FromValue(value, message.Response); 1121throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1168switch (message.Response.Status) 1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1175return Response.FromValue(value0, message.Response); 1178throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1201switch (message.Response.Status) 1206using var document = JsonDocument.Parse(message.Response.ContentStream); 1208return Response.FromValue(value0, message.Response); 1211throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1243var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response); 1244switch (message.Response.Status) 1249using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1251return ResponseWithHeaders.FromValue(value, headers, message.Response); 1254throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1273var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response); 1274switch (message.Response.Status) 1279using var document = JsonDocument.Parse(message.Response.ContentStream); 1281return ResponseWithHeaders.FromValue(value, headers, message.Response); 1284throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1323var headers = new ContainerRegistryGetTagsHeaders(message.Response); 1324switch (message.Response.Status) 1329using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1331return ResponseWithHeaders.FromValue(value, headers, message.Response); 1334throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1360var headers = new ContainerRegistryGetTagsHeaders(message.Response); 1361switch (message.Response.Status) 1366using var document = JsonDocument.Parse(message.Response.ContentStream); 1368return ResponseWithHeaders.FromValue(value, headers, message.Response); 1371throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1409var headers = new ContainerRegistryGetManifestsHeaders(message.Response); 1410switch (message.Response.Status) 1415using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1417return ResponseWithHeaders.FromValue(value, headers, message.Response); 1420throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1445var headers = new ContainerRegistryGetManifestsHeaders(message.Response); 1446switch (message.Response.Status) 1451using var document = JsonDocument.Parse(message.Response.ContentStream); 1453return ResponseWithHeaders.FromValue(value, headers, message.Response); 1456throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Core (34)
CoreResponseClassifier.cs (1)
61return !IsNonError(message.Response.Status);
HttpMessage.cs (1)
39/// Gets the <see cref="Response"/> associated with this message. Throws an exception if it wasn't set yet.
Pipeline\BearerTokenAuthenticationPolicy.cs (2)
132if (message.Response.Status == (int)HttpStatusCode.Unauthorized && message.Response.Headers.Contains(HttpHeader.Names.WwwAuthenticate))
Pipeline\HttpPipeline.cs (4)
124/// Invokes the pipeline asynchronously. After the task completes response would be set to the <see cref="HttpMessage.Response"/> property. 158/// Invokes the pipeline synchronously. After the task completes response would be set to the <see cref="HttpMessage.Response"/> property. 197return message.Response; 210return message.Response;
Pipeline\HttpPipelinePolicy.cs (2)
17/// Applies the policy to the <paramref name="message"/>. Implementers are expected to mutate <see cref="HttpMessage.Request"/> before calling <see cref="ProcessNextAsync"/> and observe the <see cref="HttpMessage.Response"/> changes after. 25/// Applies the policy to the <paramref name="message"/>. Implementers are expected to mutate <see cref="HttpMessage.Request"/> before calling <see cref="ProcessNextAsync"/> and observe the <see cref="HttpMessage.Response"/> changes after.
Pipeline\HttpPipelineTransport.cs (2)
15/// Sends the request contained by the <paramref name="message"/> and sets the <see cref="HttpMessage.Response"/> property to received response synchronously. 21/// Sends the request contained by the <paramref name="message"/> and sets the <see cref="HttpMessage.Response"/> property to received response asynchronously.
Pipeline\Internal\HttpPipelineTransportPolicy.cs (4)
27message.Response.Sanitizer = _sanitizer; 28message.Response.IsError = message.ResponseClassifier.IsErrorResponse(message); 37message.Response.Sanitizer = _sanitizer; 38message.Response.IsError = message.ResponseClassifier.IsErrorResponse(message);
Pipeline\Internal\LoggingPolicy.cs (1)
94Response response = message.Response;
Pipeline\Internal\RedirectPolicy.cs (3)
37Response response = message.Response; 39while ((redirectUri = GetUriForRedirect(request, message.Response)) != null) 83response = message.Response;
Pipeline\Internal\RequestActivityPolicy.cs (3)
83scope.AddAttribute("http.status_code", message.Response.Status, static i => i.ToString(CultureInfo.InvariantCulture)); 84if (message.Response.Headers.RequestId is string serviceRequestId) 90scope.AddAttribute("otel.status_code", message.Response.IsError ? "ERROR" : "UNSET");
Pipeline\Internal\ResponseBodyPolicy.cs (3)
70Stream? responseContentStream = message.Response.ContentStream; 97message.Response.ContentStream = bufferedStream; 119message.Response.ContentStream = new ReadTimeoutStream(responseContentStream, networkTimeout);
Pipeline\Internal\RetryPolicy.cs (6)
102else if (message.Response.IsError) 133message.Response.ContentStream?.Dispose(); 152if (message.Response == null) 157if (message.Response.TryGetHeader(RetryAfterMsHeaderName, out var retryAfterValue) || 158message.Response.TryGetHeader(XRetryAfterMsHeaderName, out retryAfterValue)) 166if (message.Response.TryGetHeader(RetryAfterHeaderName, out retryAfterValue))
ResponseClassifier.cs (2)
22switch (message.Response.Status) 60var statusKind = message.Response.Status / 100;
Azure.Core.Experimental.Tests (7)
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Core.Perf (2)
DownloadTest.cs (2)
32message.Response.ContentStream.CopyTo(Stream.Null, BufferSize); 42await message.Response.ContentStream.CopyToAsync(Stream.Null, BufferSize, cancellationToken);
Azure.Core.TestFramework (89)
Generated\TestProxyRestClient.cs (72)
69var headers = new TestProxyStartPlaybackHeaders(message.Response); 70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return ResponseWithHeaders.FromValue(value, headers, message.Response); 85throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 102var headers = new TestProxyStartPlaybackHeaders(message.Response); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 115return ResponseWithHeaders.FromValue(value, headers, message.Response); 118throw ClientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 151return message.Response; 153throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 170switch (message.Response.Status) 173return message.Response; 175throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208var headers = new TestProxyStartRecordHeaders(message.Response); 209switch (message.Response.Status) 212return ResponseWithHeaders.FromValue(headers, message.Response); 214throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 231var headers = new TestProxyStartRecordHeaders(message.Response); 232switch (message.Response.Status) 235return ResponseWithHeaders.FromValue(headers, message.Response); 237throw ClientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 285return message.Response; 287throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 309switch (message.Response.Status) 312return message.Response; 314throw ClientDiagnostics.CreateRequestFailedException(message.Response); 353switch (message.Response.Status) 356return message.Response; 358throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 379return message.Response; 381throw ClientDiagnostics.CreateRequestFailedException(message.Response); 420switch (message.Response.Status) 423return message.Response; 425throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 443switch (message.Response.Status) 446return message.Response; 448throw ClientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 490return message.Response; 492throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 510switch (message.Response.Status) 513return message.Response; 515throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 557return message.Response; 559throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 577switch (message.Response.Status) 580return message.Response; 582throw ClientDiagnostics.CreateRequestFailedException(message.Response); 610switch (message.Response.Status) 613return message.Response; 615throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 626switch (message.Response.Status) 629return message.Response; 631throw ClientDiagnostics.CreateRequestFailedException(message.Response); 670switch (message.Response.Status) 673return message.Response; 675throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 693switch (message.Response.Status) 696return message.Response; 698throw ClientDiagnostics.CreateRequestFailedException(message.Response); 737switch (message.Response.Status) 740return message.Response; 742throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 763return message.Response; 765throw ClientDiagnostics.CreateRequestFailedException(message.Response);
MockTransport.cs (4)
94message.Response.ClientRequestId = request.ClientRequestId; 96if (message.Response.ContentStream != null && ExpectSyncPipeline != null) 98message.Response.ContentStream = new AsyncValidatingStream(!ExpectSyncPipeline.Value, message.Response.ContentStream);
PlaybackTransport.cs (2)
62message.Response.ClientRequestId = message.Request.ClientRequestId; 95message.Response.ClientRequestId = message.Request.ClientRequestId;
ProxyTransport.cs (2)
90if (message.HasResponse && message.Response.Headers.Contains("x-request-mismatch")) 92var streamReader = new StreamReader(message.Response.ContentStream);
RecordTransport.cs (1)
48RecordEntry recordEntry = CreateEntry(message.Request, message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
SyncAsyncPolicyTestBase.cs (1)
40return message.Response;
Azure.Core.Tests (40)
HttpMessageTests.cs (1)
281if (message.Response.Status == _statusCode)
HttpPipelineFunctionalTests.cs (14)
97Assert.False(message.Response.ContentStream.CanSeek); 98Assert.Throws<InvalidOperationException>(() => { var content = message.Response.Content; }); 151Assert.AreEqual(message.Response.ContentStream.CanSeek, false); 152Assert.Throws<InvalidOperationException>(() => { var content = message.Response.Content; }); 272response = message.Response; 311response = message.Response; 351Assert.AreEqual(message.Response.Status, 201); 387Assert.AreEqual(message.Response.Status, 201); 466Assert.AreEqual(message.Response.Status, 201); 467Assert.AreEqual("Hello world!", await new StreamReader(message.Response.ContentStream).ReadToEndAsync()); 468Assert.AreEqual("Hello world!", message.Response.Content.ToString()); 569Assert.AreEqual(message.Response.Status, 200); 570var responseContentStream = message.Response.ContentStream; 571Assert.Throws<InvalidOperationException>(() => { var content = message.Response.Content; });
HttpPipelineMessageTest.cs (1)
94Assert.AreEqual(memoryStream.ToArray(), message.Response.Content.ToArray());
HttpPipelineTests.cs (2)
302Response response = message.Response; 333return message.Response.Status == 500;
PipelineTestBase.cs (2)
31return message.Response; 50return message.Response;
RequestContextTests.cs (3)
240Assert.IsFalse(message.Response.IsError); 316if (message.Response.Status != 409) 321if (message.Response.Headers.TryGetValue(HeaderName, out string value) &&
RetryPolicyTestBase.cs (1)
338return Array.IndexOf(_retriableCodes, message.Response.Status) >= 0;
Shared\ARMChallengeAuthenticationPolicy.cs (2)
44var challenge = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "claims"); 59var challenge = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "claims");
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
TestClients\LowLevelClient\PetStoreClient.cs (7)
83return message.Response; 89return message.Response; 93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121return message.Response; 128return message.Response; 132throw _clientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status)
Azure.Data.AppConfiguration (1)
SyncTokenPolicy.cs (1)
33if (message.Response.Headers.TryGetValues(SyncTokenHeader, out IEnumerable<string> rawSyncTokens))
Azure.Data.SchemaRegistry (47)
Generated\SchemaGroupsRestClient.cs (8)
63switch (message.Response.Status) 68using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 70return Response.FromValue(value, message.Response); 73throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 83switch (message.Response.Status) 88using var document = JsonDocument.Parse(message.Response.ContentStream); 90return Response.FromValue(value, message.Response); 93throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SchemaRestClient.cs (32)
72var headers = new SchemaGetByIdHeaders(message.Response); 73switch (message.Response.Status) 78return ResponseWithHeaders.FromValue(value, headers, message.Response); 81throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 98var headers = new SchemaGetByIdHeaders(message.Response); 99switch (message.Response.Status) 104return ResponseWithHeaders.FromValue(value, headers, message.Response); 107throw ClientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 155return Response.FromValue(value, message.Response); 158throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 180switch (message.Response.Status) 185using var document = JsonDocument.Parse(message.Response.ContentStream); 187return Response.FromValue(value, message.Response); 190throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243var headers = new SchemaQueryIdByContentHeaders(message.Response); 244switch (message.Response.Status) 247return ResponseWithHeaders.FromValue(headers, message.Response); 249throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 281var headers = new SchemaQueryIdByContentHeaders(message.Response); 282switch (message.Response.Status) 285return ResponseWithHeaders.FromValue(headers, message.Response); 287throw ClientDiagnostics.CreateRequestFailedException(message.Response); 342var headers = new SchemaRegisterHeaders(message.Response); 343switch (message.Response.Status) 346return ResponseWithHeaders.FromValue(headers, message.Response); 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 383var headers = new SchemaRegisterHeaders(message.Response); 384switch (message.Response.Status) 387return ResponseWithHeaders.FromValue(headers, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Data.Tables (168)
Generated\ServiceRestClient.cs (28)
79var headers = new ServiceSetPropertiesHeaders(message.Response); 80switch (message.Response.Status) 83return ResponseWithHeaders.FromValue(headers, message.Response); 85throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103var headers = new ServiceSetPropertiesHeaders(message.Response); 104switch (message.Response.Status) 107return ResponseWithHeaders.FromValue(headers, message.Response); 109throw ClientDiagnostics.CreateRequestFailedException(message.Response); 140var headers = new ServiceGetPropertiesHeaders(message.Response); 141switch (message.Response.Status) 146var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 151return ResponseWithHeaders.FromValue(value, headers, message.Response); 154throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 165var headers = new ServiceGetPropertiesHeaders(message.Response); 166switch (message.Response.Status) 171var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 176return ResponseWithHeaders.FromValue(value, headers, message.Response); 179throw ClientDiagnostics.CreateRequestFailedException(message.Response); 210var headers = new ServiceGetStatisticsHeaders(message.Response); 211switch (message.Response.Status) 216var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 221return ResponseWithHeaders.FromValue(value, headers, message.Response); 224throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235var headers = new ServiceGetStatisticsHeaders(message.Response); 236switch (message.Response.Status) 241var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 246return ResponseWithHeaders.FromValue(value, headers, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TableRestClient.cs (104)
86var headers = new TableQueryHeaders(message.Response); 87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return ResponseWithHeaders.FromValue(value, headers, message.Response); 97throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109var headers = new TableQueryHeaders(message.Response); 110switch (message.Response.Status) 115using var document = JsonDocument.Parse(message.Response.ContentStream); 117return ResponseWithHeaders.FromValue(value, headers, message.Response); 120throw ClientDiagnostics.CreateRequestFailedException(message.Response); 166var headers = new TableCreateHeaders(message.Response); 167switch (message.Response.Status) 172using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 174return ResponseWithHeaders.FromValue(value, headers, message.Response); 177return ResponseWithHeaders.FromValue((TableResponse)null, headers, message.Response); 179throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 198var headers = new TableCreateHeaders(message.Response); 199switch (message.Response.Status) 204using var document = JsonDocument.Parse(message.Response.ContentStream); 206return ResponseWithHeaders.FromValue(value, headers, message.Response); 209return ResponseWithHeaders.FromValue((TableResponse)null, headers, message.Response); 211throw ClientDiagnostics.CreateRequestFailedException(message.Response); 244var headers = new TableDeleteHeaders(message.Response); 245switch (message.Response.Status) 248return ResponseWithHeaders.FromValue(headers, message.Response); 250throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267var headers = new TableDeleteHeaders(message.Response); 268switch (message.Response.Status) 271return ResponseWithHeaders.FromValue(headers, message.Response); 273throw ClientDiagnostics.CreateRequestFailedException(message.Response); 339var headers = new TableQueryEntitiesHeaders(message.Response); 340switch (message.Response.Status) 345using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 347return ResponseWithHeaders.FromValue(value, headers, message.Response); 350throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 371var headers = new TableQueryEntitiesHeaders(message.Response); 372switch (message.Response.Status) 377using var document = JsonDocument.Parse(message.Response.ContentStream); 379return ResponseWithHeaders.FromValue(value, headers, message.Response); 382throw ClientDiagnostics.CreateRequestFailedException(message.Response); 448var headers = new TableQueryEntityWithPartitionAndRowKeyHeaders(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 461return ResponseWithHeaders.FromValue(value, headers, message.Response); 464throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 493var headers = new TableQueryEntityWithPartitionAndRowKeyHeaders(message.Response); 494switch (message.Response.Status) 499using var document = JsonDocument.Parse(message.Response.ContentStream); 506return ResponseWithHeaders.FromValue(value, headers, message.Response); 509throw ClientDiagnostics.CreateRequestFailedException(message.Response); 586var headers = new TableUpdateEntityHeaders(message.Response); 587switch (message.Response.Status) 590return ResponseWithHeaders.FromValue(headers, message.Response); 592throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 623var headers = new TableUpdateEntityHeaders(message.Response); 624switch (message.Response.Status) 627return ResponseWithHeaders.FromValue(headers, message.Response); 629throw ClientDiagnostics.CreateRequestFailedException(message.Response); 706var headers = new TableMergeEntityHeaders(message.Response); 707switch (message.Response.Status) 710return ResponseWithHeaders.FromValue(headers, message.Response); 712throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 743var headers = new TableMergeEntityHeaders(message.Response); 744switch (message.Response.Status) 747return ResponseWithHeaders.FromValue(headers, message.Response); 749throw ClientDiagnostics.CreateRequestFailedException(message.Response); 813var headers = new TableDeleteEntityHeaders(message.Response); 814switch (message.Response.Status) 817return ResponseWithHeaders.FromValue(headers, message.Response); 819throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 853var headers = new TableDeleteEntityHeaders(message.Response); 854switch (message.Response.Status) 857return ResponseWithHeaders.FromValue(headers, message.Response); 859throw ClientDiagnostics.CreateRequestFailedException(message.Response); 921var headers = new TableInsertEntityHeaders(message.Response); 922switch (message.Response.Status) 927using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 934return ResponseWithHeaders.FromValue(value, headers, message.Response); 937return ResponseWithHeaders.FromValue((IReadOnlyDictionary<string, object>)null, headers, message.Response); 939throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 960var headers = new TableInsertEntityHeaders(message.Response); 961switch (message.Response.Status) 966using var document = JsonDocument.Parse(message.Response.ContentStream); 973return ResponseWithHeaders.FromValue(value, headers, message.Response); 976return ResponseWithHeaders.FromValue((IReadOnlyDictionary<string, object>)null, headers, message.Response); 978throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1016var headers = new TableGetAccessPolicyHeaders(message.Response); 1017switch (message.Response.Status) 1022var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1032return ResponseWithHeaders.FromValue(value, headers, message.Response); 1035throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1053var headers = new TableGetAccessPolicyHeaders(message.Response); 1054switch (message.Response.Status) 1059var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1069return ResponseWithHeaders.FromValue(value, headers, message.Response); 1072throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1123var headers = new TableSetAccessPolicyHeaders(message.Response); 1124switch (message.Response.Status) 1127return ResponseWithHeaders.FromValue(headers, message.Response); 1129throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1148var headers = new TableSetAccessPolicyHeaders(message.Response); 1149switch (message.Response.Status) 1152return ResponseWithHeaders.FromValue(headers, message.Response); 1154throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
TableClient.cs (12)
511switch (message.Response.Status) 515return message.Response; 517throw _diagnostics.CreateRequestFailedException(message.Response); 541switch (message.Response.Status) 545return message.Response; 547throw _diagnostics.CreateRequestFailedException(message.Response); 1211switch (message.Response.Status) 1215return message.Response; 1217throw _diagnostics.CreateRequestFailedException(message.Response); 1254switch (message.Response.Status) 1258return message.Response; 1260throw _diagnostics.CreateRequestFailedException(message.Response);
TableRestClient.cs (10)
70switch (message.Response.Status) 75message.Response.ContentStream, 76message.Response.Headers.ContentType, 85return Response.FromValue(responses.ToList() as IReadOnlyList<Response>, message.Response); 94throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 115message.Response.ContentStream, 116message.Response.Headers.ContentType, 125return Response.FromValue(responses.ToList() as IReadOnlyList<Response>, message.Response); 133throw ClientDiagnostics.CreateRequestFailedException(message.Response);
TableServiceClient.cs (6)
734switch (message.Response.Status) 738return message.Response; 740throw _diagnostics.CreateRequestFailedException(message.Response); 767switch (message.Response.Status) 771return message.Response; 773throw _diagnostics.CreateRequestFailedException(message.Response);
TableTransactionResult.cs (1)
39return message.Response;
Azure.DigitalTwins.Core (217)
Customized\DigitalTwinModelsRestClient.cs (14)
26switch (message.Response.Status) 33.ParseAsync(message.Response.ContentStream, default, cancellationToken) 41return Response.FromValue(value, message.Response); 44throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 57switch (message.Response.Status) 63using var document = JsonDocument.Parse(message.Response.ContentStream); 70return Response.FromValue(value, message.Response); 73throw ClientDiagnostics.CreateRequestFailedException(message.Response); 96return message.Response.Status switch 98204 => message.Response, 99_ => throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false), 122return message.Response.Status switch 124204 => message.Response, 125_ => throw ClientDiagnostics.CreateRequestFailedException(message.Response),
Customized\DigitalTwinsRestClient.cs (60)
69switch (message.Response.Status) 74return Response.FromValue(value, message.Response); 77return Response.FromValue<Stream>(null, message.Response); 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106return Response.FromValue(value, message.Response); 109return Response.FromValue<Stream>(null, message.Response); 112throw ClientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 137return message.Response; 140throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 165return message.Response; 168throw ClientDiagnostics.CreateRequestFailedException(message.Response); 194switch (message.Response.Status) 199return Response.FromValue(value, message.Response); 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228switch (message.Response.Status) 233return Response.FromValue(value, message.Response); 236throw ClientDiagnostics.CreateRequestFailedException(message.Response); 258return message.Response.Status switch 260204 => message.Response, 261_ => throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false), 283return message.Response.Status switch 285204 => message.Response, 286_ => throw ClientDiagnostics.CreateRequestFailedException(message.Response), 308switch (message.Response.Status) 312return message.Response; 315throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 337switch (message.Response.Status) 341return message.Response; 344throw ClientDiagnostics.CreateRequestFailedException(message.Response); 370switch (message.Response.Status) 373return message.Response; 376throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 402switch (message.Response.Status) 405return message.Response; 408throw ClientDiagnostics.CreateRequestFailedException(message.Response); 439switch (message.Response.Status) 442return message.Response; 445throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 479return message.Response; 482throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 509using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 511return Response.FromValue(value, message.Response); 514throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 543switch (message.Response.Status) 547using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 549return Response.FromValue(value, message.Response); 552throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 575switch (message.Response.Status) 579using JsonDocument document = JsonDocument.Parse(message.Response.ContentStream); 581return Response.FromValue(value, message.Response); 584throw ClientDiagnostics.CreateRequestFailedException(message.Response); 613switch (message.Response.Status) 617using JsonDocument document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Customized\QueryRestClient.cs (10)
33var headers = new QueryQueryTwinsHeaders(message.Response); 34switch (message.Response.Status) 38using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 40return ResponseWithHeaders.FromValue(value, headers, message.Response); 43throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 65var headers = new QueryQueryTwinsHeaders(message.Response); 66switch (message.Response.Status) 70using var document = JsonDocument.Parse(message.Response.ContentStream); 72return ResponseWithHeaders.FromValue(value, headers, message.Response); 75throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DigitalTwinModelsRestClient.cs (44)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 137return Response.FromValue(value, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue(value, message.Response); 233throw ClientDiagnostics.CreateRequestFailedException(message.Response); 280switch (message.Response.Status) 285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 287return Response.FromValue(value, message.Response); 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 318switch (message.Response.Status) 323using var document = JsonDocument.Parse(message.Response.ContentStream); 325return Response.FromValue(value, message.Response); 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 390return message.Response; 392throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 430return message.Response; 432throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 479return message.Response; 481throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 510switch (message.Response.Status) 513return message.Response; 515throw ClientDiagnostics.CreateRequestFailedException(message.Response); 561switch (message.Response.Status) 566using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 568return Response.FromValue(value, message.Response); 571throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 600switch (message.Response.Status) 605using var document = JsonDocument.Parse(message.Response.ContentStream); 607return Response.FromValue(value, message.Response); 610throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DigitalTwinsRestClient.cs (46)
80switch (message.Response.Status) 85return Response.FromValue(value, message.Response); 88throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 114switch (message.Response.Status) 119return Response.FromValue(value, message.Response); 122throw ClientDiagnostics.CreateRequestFailedException(message.Response); 170switch (message.Response.Status) 173return message.Response; 175throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 204switch (message.Response.Status) 207return message.Response; 209throw ClientDiagnostics.CreateRequestFailedException(message.Response); 286switch (message.Response.Status) 291return Response.FromValue(value, message.Response); 294throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 331return Response.FromValue(value, message.Response); 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 417return message.Response; 419throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 456return message.Response; 458throw ClientDiagnostics.CreateRequestFailedException(message.Response); 550switch (message.Response.Status) 555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 557return Response.FromValue(value, message.Response); 560throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 697switch (message.Response.Status) 702return Response.FromValue(value, message.Response); 705throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 737switch (message.Response.Status) 742return Response.FromValue(value, message.Response); 745throw ClientDiagnostics.CreateRequestFailedException(message.Response); 832switch (message.Response.Status) 837using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 839return Response.FromValue(value, message.Response); 842throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 873switch (message.Response.Status) 878using var document = JsonDocument.Parse(message.Response.ContentStream); 880return Response.FromValue(value, message.Response); 883throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventRoutesRestClient.cs (36)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw ClientDiagnostics.CreateRequestFailedException(message.Response); 144switch (message.Response.Status) 149using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 151return Response.FromValue(value, message.Response); 154throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 178switch (message.Response.Status) 183using var document = JsonDocument.Parse(message.Response.ContentStream); 185return Response.FromValue(value, message.Response); 188throw ClientDiagnostics.CreateRequestFailedException(message.Response); 238switch (message.Response.Status) 241return message.Response; 243throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 274return message.Response; 276throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 318return message.Response; 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 344switch (message.Response.Status) 347return message.Response; 349throw ClientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 395return Response.FromValue(value, message.Response); 398throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 425using var document = JsonDocument.Parse(message.Response.ContentStream); 427return Response.FromValue(value, message.Response); 430throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Graph.Rbac (548)
Generated\ApplicationsRestOperations.cs (116)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 222return message.Response; 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 244return message.Response; 246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 280switch (message.Response.Status) 285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 287return Response.FromValue(value, message.Response); 290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 307switch (message.Response.Status) 312using var document = JsonDocument.Parse(message.Response.ContentStream); 314return Response.FromValue(value, message.Response); 317throw _clientDiagnostics.CreateRequestFailedException(message.Response); 360switch (message.Response.Status) 363return message.Response; 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 511return message.Response; 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 535switch (message.Response.Status) 538return message.Response; 540throw _clientDiagnostics.CreateRequestFailedException(message.Response); 581switch (message.Response.Status) 584return message.Response; 586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 611return message.Response; 613throw _clientDiagnostics.CreateRequestFailedException(message.Response); 648switch (message.Response.Status) 653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 655return Response.FromValue(value, message.Response); 658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 675switch (message.Response.Status) 680using var document = JsonDocument.Parse(message.Response.ContentStream); 682return Response.FromValue(value, message.Response); 685throw _clientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 732return message.Response; 734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 756switch (message.Response.Status) 759return message.Response; 761throw _clientDiagnostics.CreateRequestFailedException(message.Response); 796switch (message.Response.Status) 801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 803return Response.FromValue(value, message.Response); 806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 823switch (message.Response.Status) 828using var document = JsonDocument.Parse(message.Response.ContentStream); 830return Response.FromValue(value, message.Response); 833throw _clientDiagnostics.CreateRequestFailedException(message.Response); 877switch (message.Response.Status) 880return message.Response; 882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 904switch (message.Response.Status) 907return message.Response; 909throw _clientDiagnostics.CreateRequestFailedException(message.Response); 944switch (message.Response.Status) 949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 951return Response.FromValue(value, message.Response); 954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 971switch (message.Response.Status) 976using var document = JsonDocument.Parse(message.Response.ContentStream); 978return Response.FromValue(value, message.Response); 981throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1015switch (message.Response.Status) 1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1022return Response.FromValue(value, message.Response); 1025throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1042switch (message.Response.Status) 1047using var document = JsonDocument.Parse(message.Response.ContentStream); 1049return Response.FromValue(value, message.Response); 1052throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1087switch (message.Response.Status) 1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1094return Response.FromValue(value, message.Response); 1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1119switch (message.Response.Status) 1124using var document = JsonDocument.Parse(message.Response.ContentStream); 1126return Response.FromValue(value, message.Response); 1129throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1159switch (message.Response.Status) 1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1166return Response.FromValue(value, message.Response); 1169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1186switch (message.Response.Status) 1191using var document = JsonDocument.Parse(message.Response.ContentStream); 1193return Response.FromValue(value, message.Response); 1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DeletedApplicationsRestOperations.cs (38)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return Response.FromValue(value, message.Response); 162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw _clientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 242return message.Response; 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 285return Response.FromValue(value, message.Response); 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310using var document = JsonDocument.Parse(message.Response.ContentStream); 312return Response.FromValue(value, message.Response); 315throw _clientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 352return Response.FromValue(value, message.Response); 355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 372switch (message.Response.Status) 377using var document = JsonDocument.Parse(message.Response.ContentStream); 379return Response.FromValue(value, message.Response); 382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DomainsRestOperations.cs (16)
80switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GroupsRestOperations.cs (126)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 167return message.Response; 169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 191switch (message.Response.Status) 194return message.Response; 196throw _clientDiagnostics.CreateRequestFailedException(message.Response); 240switch (message.Response.Status) 243return message.Response; 245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 270return message.Response; 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 309switch (message.Response.Status) 314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 316return Response.FromValue(value, message.Response); 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377switch (message.Response.Status) 382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 384return Response.FromValue(value, message.Response); 387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 398switch (message.Response.Status) 403using var document = JsonDocument.Parse(message.Response.ContentStream); 405return Response.FromValue(value, message.Response); 408throw _clientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 470switch (message.Response.Status) 475using var document = JsonDocument.Parse(message.Response.ContentStream); 477return Response.FromValue(value, message.Response); 480throw _clientDiagnostics.CreateRequestFailedException(message.Response); 514switch (message.Response.Status) 519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 521return Response.FromValue(value, message.Response); 524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 541switch (message.Response.Status) 546using var document = JsonDocument.Parse(message.Response.ContentStream); 548return Response.FromValue(value, message.Response); 551throw _clientDiagnostics.CreateRequestFailedException(message.Response); 585switch (message.Response.Status) 588return message.Response; 590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 656switch (message.Response.Status) 661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 663return Response.FromValue(value, message.Response); 666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 688switch (message.Response.Status) 693using var document = JsonDocument.Parse(message.Response.ContentStream); 695return Response.FromValue(value, message.Response); 698throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 740return Response.FromValue(value, message.Response); 743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 765using var document = JsonDocument.Parse(message.Response.ContentStream); 767return Response.FromValue(value, message.Response); 770throw _clientDiagnostics.CreateRequestFailedException(message.Response); 814switch (message.Response.Status) 817return message.Response; 819throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 841switch (message.Response.Status) 844return message.Response; 846throw _clientDiagnostics.CreateRequestFailedException(message.Response); 887switch (message.Response.Status) 890return message.Response; 892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 914switch (message.Response.Status) 917return message.Response; 919throw _clientDiagnostics.CreateRequestFailedException(message.Response); 953switch (message.Response.Status) 958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 960return Response.FromValue(value, message.Response); 963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 980switch (message.Response.Status) 985using var document = JsonDocument.Parse(message.Response.ContentStream); 987return Response.FromValue(value, message.Response); 990throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1024switch (message.Response.Status) 1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1031return Response.FromValue(value, message.Response); 1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051switch (message.Response.Status) 1056using var document = JsonDocument.Parse(message.Response.ContentStream); 1058return Response.FromValue(value, message.Response); 1061throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1096switch (message.Response.Status) 1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1103return Response.FromValue(value, message.Response); 1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1128switch (message.Response.Status) 1133using var document = JsonDocument.Parse(message.Response.ContentStream); 1135return Response.FromValue(value, message.Response); 1138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1168switch (message.Response.Status) 1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1175return Response.FromValue(value, message.Response); 1178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1195switch (message.Response.Status) 1200using var document = JsonDocument.Parse(message.Response.ContentStream); 1202return Response.FromValue(value, message.Response); 1205throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1235switch (message.Response.Status) 1240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1242return Response.FromValue(value, message.Response); 1245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1262switch (message.Response.Status) 1267using var document = JsonDocument.Parse(message.Response.ContentStream); 1269return Response.FromValue(value, message.Response); 1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\OAuth2PermissionGrantRestOperations.cs (38)
80switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166switch (message.Response.Status) 171using var document = JsonDocument.Parse(message.Response.ContentStream); 173return Response.FromValue(value, message.Response); 176throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 213return message.Response; 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 235return message.Response; 237throw _clientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 278return Response.FromValue(value, message.Response); 281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308throw _clientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 370using var document = JsonDocument.Parse(message.Response.ContentStream); 372return Response.FromValue(value, message.Response); 375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ObjectsRestOperations.cs (24)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 157switch (message.Response.Status) 162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 164return Response.FromValue(value, message.Response); 167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 231return Response.FromValue(value, message.Response); 234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServicePrincipalsRestOperations.cs (96)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 228switch (message.Response.Status) 231return message.Response; 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 297return message.Response; 299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 319return message.Response; 321throw _clientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 387using var document = JsonDocument.Parse(message.Response.ContentStream); 389return Response.FromValue(value, message.Response); 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 499switch (message.Response.Status) 504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 506return Response.FromValue(value, message.Response); 509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 531using var document = JsonDocument.Parse(message.Response.ContentStream); 533return Response.FromValue(value, message.Response); 536throw _clientDiagnostics.CreateRequestFailedException(message.Response); 580switch (message.Response.Status) 583return message.Response; 585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 647switch (message.Response.Status) 652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 654return Response.FromValue(value, message.Response); 657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw _clientDiagnostics.CreateRequestFailedException(message.Response); 728switch (message.Response.Status) 731return message.Response; 733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 755switch (message.Response.Status) 758return message.Response; 760throw _clientDiagnostics.CreateRequestFailedException(message.Response); 794switch (message.Response.Status) 799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 801return Response.FromValue(value, message.Response); 804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 821switch (message.Response.Status) 826using var document = JsonDocument.Parse(message.Response.ContentStream); 828return Response.FromValue(value, message.Response); 831throw _clientDiagnostics.CreateRequestFailedException(message.Response); 866switch (message.Response.Status) 871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 873return Response.FromValue(value, message.Response); 876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 898switch (message.Response.Status) 903using var document = JsonDocument.Parse(message.Response.ContentStream); 905return Response.FromValue(value, message.Response); 908throw _clientDiagnostics.CreateRequestFailedException(message.Response); 938switch (message.Response.Status) 943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 945return Response.FromValue(value, message.Response); 948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 965switch (message.Response.Status) 970using var document = JsonDocument.Parse(message.Response.ContentStream); 972return Response.FromValue(value, message.Response); 975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SignedInUserRestOperations.cs (32)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 131switch (message.Response.Status) 136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 138return Response.FromValue(value, message.Response); 141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 195switch (message.Response.Status) 200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 202return Response.FromValue(value, message.Response); 205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 262switch (message.Response.Status) 267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 269return Response.FromValue(value, message.Response); 272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294using var document = JsonDocument.Parse(message.Response.ContentStream); 296return Response.FromValue(value, message.Response); 299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UsersRestOperations.cs (60)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 329return message.Response; 331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 365switch (message.Response.Status) 368return message.Response; 370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 436switch (message.Response.Status) 441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 443return Response.FromValue(value, message.Response); 446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 468switch (message.Response.Status) 473using var document = JsonDocument.Parse(message.Response.ContentStream); 475return Response.FromValue(value, message.Response); 478throw _clientDiagnostics.CreateRequestFailedException(message.Response); 512switch (message.Response.Status) 517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 519return Response.FromValue(value, message.Response); 522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 539switch (message.Response.Status) 544using var document = JsonDocument.Parse(message.Response.ContentStream); 546return Response.FromValue(value, message.Response); 549throw _clientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 586return Response.FromValue(value, message.Response); 589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\ArmOperationHelpers.cs (2)
202return message.Response; 224return message.Response;
Azure.Identity (3)
CredentialPipeline.cs (1)
74return base.IsRetriableResponse(message) || message.Response.Status == 404;
ManagedIdentitySource.cs (2)
41return await HandleResponseAsync(async, context, message.Response, cancellationToken).ConfigureAwait(false); 155return message.Response.Status switch
Azure.IoT.DeviceUpdate (15)
Generated\DeviceManagementClient.cs (5)
4417return message.Response.Status switch 4430return message.Response.Status switch 4443return message.Response.Status switch 4456return message.Response.Status switch 4470return message.Response.Status switch
Generated\DeviceUpdateClient.cs (3)
1848return message.Response.Status switch 1861return message.Response.Status switch 1874return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.IoT.Hub.Service (301)
Customized\JobsRestClient.cs (10)
23switch (message.Response.Status) 28using var document = JsonDocument.Parse(message.Response.ContentStream); 37return Response.FromValue(value, message.Response); 40return Response.FromValue<string>(null, message.Response); 43throw ClientDiagnostics.CreateRequestFailedException(message.Response); 56switch (message.Response.Status) 61using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 70return Response.FromValue(value, message.Response); 73return Response.FromValue<string>(null, message.Response); 76throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
Generated\BulkRegistryRestClient.cs (8)
79switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107switch (message.Response.Status) 113using var document = JsonDocument.Parse(message.Response.ContentStream); 115return Response.FromValue(value, message.Response); 118throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CloudToDeviceMessagesRestClient.cs (26)
71switch (message.Response.Status) 76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 78return Response.FromValue(value, message.Response); 81throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 98switch (message.Response.Status) 103using var document = JsonDocument.Parse(message.Response.ContentStream); 105return Response.FromValue(value, message.Response); 108throw ClientDiagnostics.CreateRequestFailedException(message.Response); 131switch (message.Response.Status) 135return message.Response; 137throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 147switch (message.Response.Status) 151return message.Response; 153throw ClientDiagnostics.CreateRequestFailedException(message.Response); 184switch (message.Response.Status) 187return message.Response; 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 206switch (message.Response.Status) 209return message.Response; 211throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 246return message.Response; 248throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 268return message.Response; 270throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ConfigurationRestClient.cs (44)
71switch (message.Response.Status) 76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 78return Response.FromValue(value, message.Response); 81throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 98switch (message.Response.Status) 103using var document = JsonDocument.Parse(message.Response.ContentStream); 105return Response.FromValue(value, message.Response); 108throw ClientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 162return Response.FromValue(value, message.Response); 165throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 188switch (message.Response.Status) 194using var document = JsonDocument.Parse(message.Response.ContentStream); 196return Response.FromValue(value, message.Response); 199throw ClientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 238return message.Response; 240throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 261return message.Response; 263throw ClientDiagnostics.CreateRequestFailedException(message.Response); 292switch (message.Response.Status) 297using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 304return Response.FromValue(value, message.Response); 307throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 318switch (message.Response.Status) 323using var document = JsonDocument.Parse(message.Response.ContentStream); 330return Response.FromValue(value, message.Response); 333throw ClientDiagnostics.CreateRequestFailedException(message.Response); 368switch (message.Response.Status) 373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 375return Response.FromValue(value, message.Response); 378throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 395switch (message.Response.Status) 400using var document = JsonDocument.Parse(message.Response.ContentStream); 402return Response.FromValue(value, message.Response); 405throw ClientDiagnostics.CreateRequestFailedException(message.Response); 446switch (message.Response.Status) 449return message.Response; 451throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 473switch (message.Response.Status) 476return message.Response; 478throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DevicesRestClient.cs (62)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 80return Response.FromValue(value, message.Response); 83throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 106return Response.FromValue(value, message.Response); 109throw ClientDiagnostics.CreateRequestFailedException(message.Response); 141switch (message.Response.Status) 146using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 148return Response.FromValue(value, message.Response); 151throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 168switch (message.Response.Status) 173using var document = JsonDocument.Parse(message.Response.ContentStream); 175return Response.FromValue(value, message.Response); 178throw ClientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 231return Response.FromValue(value, message.Response); 234throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw ClientDiagnostics.CreateRequestFailedException(message.Response); 303switch (message.Response.Status) 306return message.Response; 308throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 329return message.Response; 331throw ClientDiagnostics.CreateRequestFailedException(message.Response); 363switch (message.Response.Status) 368using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 370return Response.FromValue(value, message.Response); 373throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 390switch (message.Response.Status) 395using var document = JsonDocument.Parse(message.Response.ContentStream); 397return Response.FromValue(value, message.Response); 400throw ClientDiagnostics.CreateRequestFailedException(message.Response); 446switch (message.Response.Status) 451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 453return Response.FromValue(value, message.Response); 456throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw ClientDiagnostics.CreateRequestFailedException(message.Response); 535switch (message.Response.Status) 540using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 542return Response.FromValue(value, message.Response); 545throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 568switch (message.Response.Status) 573using var document = JsonDocument.Parse(message.Response.ContentStream); 575return Response.FromValue(value, message.Response); 578throw ClientDiagnostics.CreateRequestFailedException(message.Response); 620switch (message.Response.Status) 625using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 627return Response.FromValue(value, message.Response); 630throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 652switch (message.Response.Status) 657using var document = JsonDocument.Parse(message.Response.ContentStream); 659return Response.FromValue(value, message.Response); 662throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestClient.cs (56)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw ClientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 147return Response.FromValue(value, message.Response); 150throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 172return Response.FromValue(value, message.Response); 175throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 239using var document = JsonDocument.Parse(message.Response.ContentStream); 241return Response.FromValue(value, message.Response); 244throw ClientDiagnostics.CreateRequestFailedException(message.Response); 276switch (message.Response.Status) 281using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 283return Response.FromValue(value, message.Response); 286throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 303switch (message.Response.Status) 308using var document = JsonDocument.Parse(message.Response.ContentStream); 310return Response.FromValue(value, message.Response); 313throw ClientDiagnostics.CreateRequestFailedException(message.Response); 354switch (message.Response.Status) 359using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 361return Response.FromValue(value, message.Response); 364throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 391using var document = JsonDocument.Parse(message.Response.ContentStream); 393return Response.FromValue(value, message.Response); 396throw ClientDiagnostics.CreateRequestFailedException(message.Response); 429switch (message.Response.Status) 434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 436return Response.FromValue(value, message.Response); 439throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 456switch (message.Response.Status) 461using var document = JsonDocument.Parse(message.Response.ContentStream); 463return Response.FromValue(value, message.Response); 466throw ClientDiagnostics.CreateRequestFailedException(message.Response); 500switch (message.Response.Status) 505using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 507return Response.FromValue(value, message.Response); 510throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 522switch (message.Response.Status) 527using var document = JsonDocument.Parse(message.Response.ContentStream); 529return Response.FromValue(value, message.Response); 532throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModulesRestClient.cs (62)
78switch (message.Response.Status) 83using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 85return Response.FromValue(value, message.Response); 88throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 115using var document = JsonDocument.Parse(message.Response.ContentStream); 117return Response.FromValue(value, message.Response); 120throw ClientDiagnostics.CreateRequestFailedException(message.Response); 173switch (message.Response.Status) 178using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 180return Response.FromValue(value, message.Response); 183throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221throw ClientDiagnostics.CreateRequestFailedException(message.Response); 274switch (message.Response.Status) 279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 281return Response.FromValue(value, message.Response); 284throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 312switch (message.Response.Status) 317using var document = JsonDocument.Parse(message.Response.ContentStream); 319return Response.FromValue(value, message.Response); 322throw ClientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 367return Response.FromValue(value, message.Response); 370throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 392using var document = JsonDocument.Parse(message.Response.ContentStream); 399return Response.FromValue(value, message.Response); 402throw ClientDiagnostics.CreateRequestFailedException(message.Response); 441switch (message.Response.Status) 446using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 448return Response.FromValue(value, message.Response); 451throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 473switch (message.Response.Status) 478using var document = JsonDocument.Parse(message.Response.ContentStream); 480return Response.FromValue(value, message.Response); 483throw ClientDiagnostics.CreateRequestFailedException(message.Response); 536switch (message.Response.Status) 542using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 544return Response.FromValue(value, message.Response); 547throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 575switch (message.Response.Status) 581using var document = JsonDocument.Parse(message.Response.ContentStream); 583return Response.FromValue(value, message.Response); 586throw ClientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 632return message.Response; 634throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 657switch (message.Response.Status) 660return message.Response; 662throw ClientDiagnostics.CreateRequestFailedException(message.Response); 711switch (message.Response.Status) 716using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 718return Response.FromValue(value, message.Response); 721throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 748switch (message.Response.Status) 753using var document = JsonDocument.Parse(message.Response.ContentStream); 755return Response.FromValue(value, message.Response); 758throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueryRestClient.cs (10)
83var headers = new QueryGetTwinsHeaders(message.Response); 84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return ResponseWithHeaders.FromValue(value, headers, message.Response); 99throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 118var headers = new QueryGetTwinsHeaders(message.Response); 119switch (message.Response.Status) 124using var document = JsonDocument.Parse(message.Response.ContentStream); 131return ResponseWithHeaders.FromValue(value, headers, message.Response); 134throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\StatisticsRestClient.cs (16)
62switch (message.Response.Status) 67using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 69return Response.FromValue(value, message.Response); 72throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 82switch (message.Response.Status) 87using var document = JsonDocument.Parse(message.Response.ContentStream); 89return Response.FromValue(value, message.Response); 92throw ClientDiagnostics.CreateRequestFailedException(message.Response); 116switch (message.Response.Status) 121using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 123return Response.FromValue(value, message.Response); 126throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 141using var document = JsonDocument.Parse(message.Response.ContentStream); 143return Response.FromValue(value, message.Response); 146throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.IoT.ModelsRepository (6)
Fetchers\HttpModelFetcher.cs (6)
171switch (message.Response.Status) 175return GetContent(message.Response.ContentStream); 178throw _clientDiagnostics.CreateRequestFailedException(message.Response); 199switch (message.Response.Status) 203return await GetContentAsync(message.Response.ContentStream, cancellationToken).ConfigureAwait(false); 206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.IoT.TimeSeriesInsights (111)
Generated\ModelSettingsRestClient.cs (16)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 88switch (message.Response.Status) 93using var document = JsonDocument.Parse(message.Response.ContentStream); 95return Response.FromValue(value, message.Response); 98throw ClientDiagnostics.CreateRequestFailedException(message.Response); 139switch (message.Response.Status) 144using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 146return Response.FromValue(value, message.Response); 149throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 167switch (message.Response.Status) 172using var document = JsonDocument.Parse(message.Response.ContentStream); 174return Response.FromValue(value, message.Response); 177throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueryRestClient.cs (24)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw ClientDiagnostics.CreateRequestFailedException(message.Response); 150switch (message.Response.Status) 155using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 157return Response.FromValue(value, message.Response); 160throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 179switch (message.Response.Status) 184using var document = JsonDocument.Parse(message.Response.ContentStream); 186return Response.FromValue(value, message.Response); 189throw ClientDiagnostics.CreateRequestFailedException(message.Response); 240switch (message.Response.Status) 245using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 247return Response.FromValue(value, message.Response); 250throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 270switch (message.Response.Status) 275using var document = JsonDocument.Parse(message.Response.ContentStream); 277return Response.FromValue(value, message.Response); 280throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TimeSeriesHierarchiesRestClient.cs (16)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw ClientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TimeSeriesInstancesRestClient.cs (32)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw ClientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw ClientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 231return Response.FromValue(value, message.Response); 234throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252switch (message.Response.Status) 257using var document = JsonDocument.Parse(message.Response.ContentStream); 259return Response.FromValue(value, message.Response); 262throw ClientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 337switch (message.Response.Status) 342using var document = JsonDocument.Parse(message.Response.ContentStream); 344return Response.FromValue(value, message.Response); 347throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TimeSeriesTypesRestClient.cs (16)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw ClientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Media.VideoAnalyzer.Edge (7)
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Messaging.EventGrid (41)
Customization\EventGridPublisherClient.cs (16)
121return message.Response.Status switch 123200 => message.Response, 125throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 126throw _clientDiagnostics.CreateRequestFailedException(message.Response) 190return message.Response.Status switch 192200 => message.Response, 194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 195throw _clientDiagnostics.CreateRequestFailedException(message.Response) 257return message.Response.Status switch 259200 => message.Response, 261throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 262throw _clientDiagnostics.CreateRequestFailedException(message.Response) 327return message.Response.Status switch 329200 => message.Response, 331throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 332throw _clientDiagnostics.CreateRequestFailedException(message.Response)
Generated\EventGridRestClient.cs (18)
80switch (message.Response.Status) 83return message.Response; 85throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107switch (message.Response.Status) 110return message.Response; 112throw ClientDiagnostics.CreateRequestFailedException(message.Response); 157switch (message.Response.Status) 160return message.Response; 162throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 187return message.Response; 189throw ClientDiagnostics.CreateRequestFailedException(message.Response); 234switch (message.Response.Status) 237return message.Response; 239throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 261switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Messaging.WebPubSub (12)
Generated\HealthApiClient.cs (1)
105return message.Response.Status switch
Generated\WebPubSubServiceClient.cs (4)
2027return message.Response.Status switch 2040return message.Response.Status switch 2053return message.Response.Status switch 2066return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.MixedReality.Authentication (17)
Generated\MixedRealityStsRestClient.cs (10)
67var headers = new MixedRealityStsGetTokenHeaders(message.Response); 68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return ResponseWithHeaders.FromValue(value, headers, message.Response); 78throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 90var headers = new MixedRealityStsGetTokenHeaders(message.Response); 91switch (message.Response.Status) 96using var document = JsonDocument.Parse(message.Response.ContentStream); 98return ResponseWithHeaders.FromValue(value, headers, message.Response); 101throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.MixedReality.ObjectAnchors.Conversion (37)
Generated\BlobUploadEndpointRestClient.cs (10)
67var headers = new BlobUploadEndpointGetHeaders(message.Response); 68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return ResponseWithHeaders.FromValue(value, headers, message.Response); 78throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 90var headers = new BlobUploadEndpointGetHeaders(message.Response); 91switch (message.Response.Status) 96using var document = JsonDocument.Parse(message.Response.ContentStream); 98return ResponseWithHeaders.FromValue(value, headers, message.Response); 101throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IngestionJobRestClient.cs (20)
77var headers = new IngestionJobCreateHeaders(message.Response); 78switch (message.Response.Status) 83using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 85return ResponseWithHeaders.FromValue(value, headers, message.Response); 88throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 102var headers = new IngestionJobCreateHeaders(message.Response); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return ResponseWithHeaders.FromValue(value, headers, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 147var headers = new IngestionJobGetHeaders(message.Response); 148switch (message.Response.Status) 153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 155return ResponseWithHeaders.FromValue(value, headers, message.Response); 158throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171var headers = new IngestionJobGetHeaders(message.Response); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return ResponseWithHeaders.FromValue(value, headers, message.Response); 182throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.MixedReality.RemoteRendering (97)
Generated\RemoteRenderingRestClient.cs (90)
81var headers = new RemoteRenderingCreateConversionHeaders(message.Response); 82switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return ResponseWithHeaders.FromValue(value, headers, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 116var headers = new RemoteRenderingCreateConversionHeaders(message.Response); 117switch (message.Response.Status) 123using var document = JsonDocument.Parse(message.Response.ContentStream); 125return ResponseWithHeaders.FromValue(value, headers, message.Response); 128throw ClientDiagnostics.CreateRequestFailedException(message.Response); 163var headers = new RemoteRenderingGetConversionHeaders(message.Response); 164switch (message.Response.Status) 169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 171return ResponseWithHeaders.FromValue(value, headers, message.Response); 174throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 192var headers = new RemoteRenderingGetConversionHeaders(message.Response); 193switch (message.Response.Status) 198using var document = JsonDocument.Parse(message.Response.ContentStream); 200return ResponseWithHeaders.FromValue(value, headers, message.Response); 203throw ClientDiagnostics.CreateRequestFailedException(message.Response); 230var headers = new RemoteRenderingListConversionsHeaders(message.Response); 231switch (message.Response.Status) 236using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 238return ResponseWithHeaders.FromValue(value, headers, message.Response); 241throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252var headers = new RemoteRenderingListConversionsHeaders(message.Response); 253switch (message.Response.Status) 258using var document = JsonDocument.Parse(message.Response.ContentStream); 260return ResponseWithHeaders.FromValue(value, headers, message.Response); 263throw ClientDiagnostics.CreateRequestFailedException(message.Response); 307var headers = new RemoteRenderingCreateSessionHeaders(message.Response); 308switch (message.Response.Status) 314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 316return ResponseWithHeaders.FromValue(value, headers, message.Response); 319throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 342var headers = new RemoteRenderingCreateSessionHeaders(message.Response); 343switch (message.Response.Status) 349using var document = JsonDocument.Parse(message.Response.ContentStream); 351return ResponseWithHeaders.FromValue(value, headers, message.Response); 354throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw ClientDiagnostics.CreateRequestFailedException(message.Response); 471switch (message.Response.Status) 476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 478return Response.FromValue(value, message.Response); 481throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 504switch (message.Response.Status) 509using var document = JsonDocument.Parse(message.Response.ContentStream); 511return Response.FromValue(value, message.Response); 514throw ClientDiagnostics.CreateRequestFailedException(message.Response); 550var headers = new RemoteRenderingStopSessionHeaders(message.Response); 551switch (message.Response.Status) 554return ResponseWithHeaders.FromValue(headers, message.Response); 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 574var headers = new RemoteRenderingStopSessionHeaders(message.Response); 575switch (message.Response.Status) 578return ResponseWithHeaders.FromValue(headers, message.Response); 580throw ClientDiagnostics.CreateRequestFailedException(message.Response); 607switch (message.Response.Status) 612using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 614return Response.FromValue(value, message.Response); 617throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 628switch (message.Response.Status) 633using var document = JsonDocument.Parse(message.Response.ContentStream); 635return Response.FromValue(value, message.Response); 638throw ClientDiagnostics.CreateRequestFailedException(message.Response); 669var headers = new RemoteRenderingListConversionsHeaders(message.Response); 670switch (message.Response.Status) 675using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 677return ResponseWithHeaders.FromValue(value, headers, message.Response); 680throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 698var headers = new RemoteRenderingListConversionsHeaders(message.Response); 699switch (message.Response.Status) 704using var document = JsonDocument.Parse(message.Response.ContentStream); 706return ResponseWithHeaders.FromValue(value, headers, message.Response); 709throw ClientDiagnostics.CreateRequestFailedException(message.Response); 740switch (message.Response.Status) 745using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 747return Response.FromValue(value, message.Response); 750throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 768switch (message.Response.Status) 773using var document = JsonDocument.Parse(message.Response.ContentStream); 775return Response.FromValue(value, message.Response); 778throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Monitor.OpenTelemetry.Exporter (24)
AzureMonitorTransmitter.cs (7)
125if (httpMessage.HasResponse && httpMessage.Response.Status == ResponseStatusCodes.Success) 147switch (httpMessage.Response.Status) 156retryInterval = HttpPipelineHelper.GetRetryInterval(httpMessage.Response); 166retryInterval = HttpPipelineHelper.GetRetryInterval(httpMessage.Response); 198switch (httpMessage.Response.Status) 208retryInterval = HttpPipelineHelper.GetRetryInterval(httpMessage.Response); 218retryInterval = HttpPipelineHelper.GetRetryInterval(httpMessage.Response);
Generated\ApplicationInsightsRestClient.cs (8)
53switch (message.Response.Status) 59using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 61return Response.FromValue(value, message.Response); 64throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 81switch (message.Response.Status) 87using var document = JsonDocument.Parse(message.Response.ContentStream); 89return Response.FromValue(value, message.Response); 92throw ClientDiagnostics.CreateRequestFailedException(message.Response);
HttpPipelineHelper.cs (2)
27using (JsonDocument document = JsonDocument.Parse(message.Response.ContentStream, default)) 30return Response.FromValue(value, message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Monitor.Query (67)
Generated\MetricDefinitionsRestClient.cs (8)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 105using var document = JsonDocument.Parse(message.Response.ContentStream); 107return Response.FromValue(value, message.Response); 110throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricNamespacesRestClient.cs (8)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 105using var document = JsonDocument.Parse(message.Response.ContentStream); 107return Response.FromValue(value, message.Response); 110throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricsRestClient.cs (8)
120switch (message.Response.Status) 125using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 127return Response.FromValue(value, message.Response); 130throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 169using var document = JsonDocument.Parse(message.Response.ContentStream); 171return Response.FromValue(value, message.Response); 174throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueryRestClient.cs (24)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 115using var document = JsonDocument.Parse(message.Response.ContentStream); 117return Response.FromValue(value, message.Response); 120throw ClientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 199switch (message.Response.Status) 204using var document = JsonDocument.Parse(message.Response.ContentStream); 206return Response.FromValue(value, message.Response); 209throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 250return Response.FromValue(value, message.Response); 253throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 270switch (message.Response.Status) 275using var document = JsonDocument.Parse(message.Response.ContentStream); 277return Response.FromValue(value, message.Response); 280throw ClientDiagnostics.CreateRequestFailedException(message.Response);
LogsQueryClient.cs (12)
532switch (message.Response.Status) 536using var document = JsonDocument.Parse(message.Response.ContentStream); 538return ConvertBatchResponse(value, message.Response); 544throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 548throw _clientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false) : 585JsonDocument.Parse(message.Response.ContentStream, default); 594throw value.CreateExceptionForErrorResponse(message.Response.Status); 597return Response.FromValue(value, message.Response); 603throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Quantum.Jobs (95)
Generated\JobsRestClient.cs (48)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw ClientDiagnostics.CreateRequestFailedException(message.Response); 141switch (message.Response.Status) 146using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 148return Response.FromValue(value, message.Response); 151throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 168switch (message.Response.Status) 173using var document = JsonDocument.Parse(message.Response.ContentStream); 175return Response.FromValue(value, message.Response); 178throw ClientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return Response.FromValue(value, message.Response); 235throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 263using var document = JsonDocument.Parse(message.Response.ContentStream); 265return Response.FromValue(value, message.Response); 268throw ClientDiagnostics.CreateRequestFailedException(message.Response); 305switch (message.Response.Status) 308return message.Response; 310throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 330return message.Response; 332throw ClientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 390return Response.FromValue(value, message.Response); 393return Response.FromValue((JobDetails)null, message.Response); 395throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427return Response.FromValue((JobDetails)null, message.Response); 429throw ClientDiagnostics.CreateRequestFailedException(message.Response); 459switch (message.Response.Status) 464using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 466return Response.FromValue(value, message.Response); 469throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 486switch (message.Response.Status) 491using var document = JsonDocument.Parse(message.Response.ContentStream); 493return Response.FromValue(value, message.Response); 496throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ProvidersRestClient.cs (16)
73switch (message.Response.Status) 78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 80return Response.FromValue(value, message.Response); 83throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 93switch (message.Response.Status) 98using var document = JsonDocument.Parse(message.Response.ContentStream); 100return Response.FromValue(value, message.Response); 103throw ClientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 140return Response.FromValue(value, message.Response); 143throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QuotasRestClient.cs (16)
73switch (message.Response.Status) 78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 80return Response.FromValue(value, message.Response); 83throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 93switch (message.Response.Status) 98using var document = JsonDocument.Parse(message.Response.ContentStream); 100return Response.FromValue(value, message.Response); 103throw ClientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 140return Response.FromValue(value, message.Response); 143throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\StorageRestClient.cs (8)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager (991)
ManagementGroup\Generated\RestOperations\ManagementGroupsRestOperations.cs (70)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw ClientDiagnostics.CreateRequestFailedException(message.Response); 179switch (message.Response.Status) 184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 186return Response.FromValue(value, message.Response); 189return Response.FromValue((ManagementGroupData)null, message.Response); 191throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215switch (message.Response.Status) 220using var document = JsonDocument.Parse(message.Response.ContentStream); 222return Response.FromValue(value, message.Response); 225return Response.FromValue((ManagementGroupData)null, message.Response); 227throw ClientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 282return message.Response; 284throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 311switch (message.Response.Status) 315return message.Response; 317throw ClientDiagnostics.CreateRequestFailedException(message.Response); 367switch (message.Response.Status) 372using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 374return Response.FromValue(value, message.Response); 377throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 403switch (message.Response.Status) 408using var document = JsonDocument.Parse(message.Response.ContentStream); 410return Response.FromValue(value, message.Response); 413throw ClientDiagnostics.CreateRequestFailedException(message.Response); 455switch (message.Response.Status) 459return message.Response; 461throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 483switch (message.Response.Status) 487return message.Response; 489throw ClientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 576switch (message.Response.Status) 581using var document = JsonDocument.Parse(message.Response.ContentStream); 583return Response.FromValue(value, message.Response); 586throw ClientDiagnostics.CreateRequestFailedException(message.Response); 622switch (message.Response.Status) 627using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 629return Response.FromValue(value, message.Response); 632throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 649switch (message.Response.Status) 654using var document = JsonDocument.Parse(message.Response.ContentStream); 656return Response.FromValue(value, message.Response); 659throw ClientDiagnostics.CreateRequestFailedException(message.Response); 703switch (message.Response.Status) 708using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 710return Response.FromValue(value, message.Response); 713throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 739switch (message.Response.Status) 744using var document = JsonDocument.Parse(message.Response.ContentStream); 746return Response.FromValue(value, message.Response); 749throw ClientDiagnostics.CreateRequestFailedException(message.Response); 794switch (message.Response.Status) 799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 801return Response.FromValue(value, message.Response); 804throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 835switch (message.Response.Status) 840using var document = JsonDocument.Parse(message.Response.ContentStream); 842return Response.FromValue(value, message.Response); 845throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Custom\RestOperations\ResourcesRestOperations.cs (60)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 131switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 190switch (message.Response.Status) 195using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 197return Response.FromValue(value, message.Response); 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 225using var document = JsonDocument.Parse(message.Response.ContentStream); 227return Response.FromValue(value, message.Response); 230throw _clientDiagnostics.CreateRequestFailedException(message.Response); 268switch (message.Response.Status) 273return message.Response; 275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 297switch (message.Response.Status) 302return message.Response; 304throw _clientDiagnostics.CreateRequestFailedException(message.Response); 351switch (message.Response.Status) 356return message.Response; 358throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 385switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 439switch (message.Response.Status) 443return message.Response; 445throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 472switch (message.Response.Status) 476return message.Response; 478throw _clientDiagnostics.CreateRequestFailedException(message.Response); 516switch (message.Response.Status) 521using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 523return Response.FromValue(value, message.Response); 526return Response.FromValue((GenericResourceData)null, message.Response); 528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 550switch (message.Response.Status) 555using var document = JsonDocument.Parse(message.Response.ContentStream); 557return Response.FromValue(value, message.Response); 560return Response.FromValue((GenericResourceData)null, message.Response); 562throw _clientDiagnostics.CreateRequestFailedException(message.Response); 606switch (message.Response.Status) 611using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 613return Response.FromValue(value, message.Response); 616throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 646switch (message.Response.Status) 651using var document = JsonDocument.Parse(message.Response.ContentStream); 653return Response.FromValue(value, message.Response); 656throw _clientDiagnostics.CreateRequestFailedException(message.Response); 695switch (message.Response.Status) 700using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 702return Response.FromValue(value, message.Response); 705throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 730switch (message.Response.Status) 735using var document = JsonDocument.Parse(message.Response.ContentStream); 737return Response.FromValue(value, message.Response); 740throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Custom\RestOperations\RestOperations.cs (8)
74switch (message.Response.Status) 79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 81return Response.FromValue(value, message.Response); 84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\DataPolicyManifestsRestOperations.cs (26)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85return Response.FromValue((DataPolicyManifestData)null, message.Response); 87throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 104switch (message.Response.Status) 109using var document = JsonDocument.Parse(message.Response.ContentStream); 111return Response.FromValue(value, message.Response); 114return Response.FromValue((DataPolicyManifestData)null, message.Response); 116throw ClientDiagnostics.CreateRequestFailedException(message.Response); 146switch (message.Response.Status) 151using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 153return Response.FromValue(value, message.Response); 156throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 167switch (message.Response.Status) 172using var document = JsonDocument.Parse(message.Response.ContentStream); 174return Response.FromValue(value, message.Response); 177throw ClientDiagnostics.CreateRequestFailedException(message.Response); 209switch (message.Response.Status) 214using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 216return Response.FromValue(value, message.Response); 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\FeaturesRestOperations.cs (58)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 250return Response.FromValue(value, message.Response); 253return Response.FromValue((FeatureData)null, message.Response); 255throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 287using var document = JsonDocument.Parse(message.Response.ContentStream); 289return Response.FromValue(value, message.Response); 292return Response.FromValue((FeatureData)null, message.Response); 294throw ClientDiagnostics.CreateRequestFailedException(message.Response); 342switch (message.Response.Status) 347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 349return Response.FromValue(value, message.Response); 352throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 379switch (message.Response.Status) 384using var document = JsonDocument.Parse(message.Response.ContentStream); 386return Response.FromValue(value, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 437switch (message.Response.Status) 442using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 444return Response.FromValue(value, message.Response); 447throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 474switch (message.Response.Status) 479using var document = JsonDocument.Parse(message.Response.ContentStream); 481return Response.FromValue(value, message.Response); 484throw ClientDiagnostics.CreateRequestFailedException(message.Response); 520switch (message.Response.Status) 525using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 527return Response.FromValue(value, message.Response); 530throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 552switch (message.Response.Status) 557using var document = JsonDocument.Parse(message.Response.ContentStream); 559return Response.FromValue(value, message.Response); 562throw ClientDiagnostics.CreateRequestFailedException(message.Response); 603switch (message.Response.Status) 608using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 610return Response.FromValue(value, message.Response); 613throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 640switch (message.Response.Status) 645using var document = JsonDocument.Parse(message.Response.ContentStream); 647return Response.FromValue(value, message.Response); 650throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\ManagementLocksRestOperations.cs (40)
91switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 135using var document = JsonDocument.Parse(message.Response.ContentStream); 137return Response.FromValue(value, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 179switch (message.Response.Status) 183return message.Response; 185throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 207switch (message.Response.Status) 211return message.Response; 213throw ClientDiagnostics.CreateRequestFailedException(message.Response); 253switch (message.Response.Status) 258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 260return Response.FromValue(value, message.Response); 263return Response.FromValue((ManagementLockData)null, message.Response); 265throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287switch (message.Response.Status) 292using var document = JsonDocument.Parse(message.Response.ContentStream); 294return Response.FromValue(value, message.Response); 297return Response.FromValue((ManagementLockData)null, message.Response); 299throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 366switch (message.Response.Status) 371using var document = JsonDocument.Parse(message.Response.ContentStream); 373return Response.FromValue(value, message.Response); 376throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 446switch (message.Response.Status) 451using var document = JsonDocument.Parse(message.Response.ContentStream); 453return Response.FromValue(value, message.Response); 456throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\PolicyAssignmentsRestOperations.cs (92)
82switch (message.Response.Status) 87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 89return Response.FromValue(value, message.Response); 92return Response.FromValue((PolicyAssignmentData)null, message.Response); 94throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 116switch (message.Response.Status) 121using var document = JsonDocument.Parse(message.Response.ContentStream); 123return Response.FromValue(value, message.Response); 126return Response.FromValue((PolicyAssignmentData)null, message.Response); 128throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw ClientDiagnostics.CreateRequestFailedException(message.Response); 264switch (message.Response.Status) 269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 271return Response.FromValue(value, message.Response); 274return Response.FromValue((PolicyAssignmentData)null, message.Response); 276throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308return Response.FromValue((PolicyAssignmentData)null, message.Response); 310throw ClientDiagnostics.CreateRequestFailedException(message.Response); 361switch (message.Response.Status) 366using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 368return Response.FromValue(value, message.Response); 371throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 395switch (message.Response.Status) 400using var document = JsonDocument.Parse(message.Response.ContentStream); 402return Response.FromValue(value, message.Response); 405throw ClientDiagnostics.CreateRequestFailedException(message.Response); 484switch (message.Response.Status) 489using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 491return Response.FromValue(value, message.Response); 494throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 538switch (message.Response.Status) 543using var document = JsonDocument.Parse(message.Response.ContentStream); 545return Response.FromValue(value, message.Response); 548throw ClientDiagnostics.CreateRequestFailedException(message.Response); 592switch (message.Response.Status) 597using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 599return Response.FromValue(value, message.Response); 602throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 621switch (message.Response.Status) 626using var document = JsonDocument.Parse(message.Response.ContentStream); 628return Response.FromValue(value, message.Response); 631throw ClientDiagnostics.CreateRequestFailedException(message.Response); 675switch (message.Response.Status) 680using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 682return Response.FromValue(value, message.Response); 685throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 704switch (message.Response.Status) 709using var document = JsonDocument.Parse(message.Response.ContentStream); 711return Response.FromValue(value, message.Response); 714throw ClientDiagnostics.CreateRequestFailedException(message.Response); 757switch (message.Response.Status) 762using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 764return Response.FromValue(value, message.Response); 767throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 796switch (message.Response.Status) 801using var document = JsonDocument.Parse(message.Response.ContentStream); 803return Response.FromValue(value, message.Response); 806throw ClientDiagnostics.CreateRequestFailedException(message.Response); 869switch (message.Response.Status) 874using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 876return Response.FromValue(value, message.Response); 879throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 928switch (message.Response.Status) 933using var document = JsonDocument.Parse(message.Response.ContentStream); 935return Response.FromValue(value, message.Response); 938throw ClientDiagnostics.CreateRequestFailedException(message.Response); 976switch (message.Response.Status) 981using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 983return Response.FromValue(value, message.Response); 986throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1010switch (message.Response.Status) 1015using var document = JsonDocument.Parse(message.Response.ContentStream); 1017return Response.FromValue(value, message.Response); 1020throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1058switch (message.Response.Status) 1063using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1065return Response.FromValue(value, message.Response); 1068throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1092switch (message.Response.Status) 1097using var document = JsonDocument.Parse(message.Response.ContentStream); 1099return Response.FromValue(value, message.Response); 1102throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\PolicyDefinitionsRestOperations.cs (106)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138throw ClientDiagnostics.CreateRequestFailedException(message.Response); 178switch (message.Response.Status) 182return message.Response; 184throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 206switch (message.Response.Status) 210return message.Response; 212throw ClientDiagnostics.CreateRequestFailedException(message.Response); 252switch (message.Response.Status) 257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 259return Response.FromValue(value, message.Response); 262return Response.FromValue((PolicyDefinitionData)null, message.Response); 264throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 286switch (message.Response.Status) 291using var document = JsonDocument.Parse(message.Response.ContentStream); 293return Response.FromValue(value, message.Response); 296return Response.FromValue((PolicyDefinitionData)null, message.Response); 298throw ClientDiagnostics.CreateRequestFailedException(message.Response); 331switch (message.Response.Status) 336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 338return Response.FromValue(value, message.Response); 341return Response.FromValue((PolicyDefinitionData)null, message.Response); 343throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 360switch (message.Response.Status) 365using var document = JsonDocument.Parse(message.Response.ContentStream); 367return Response.FromValue(value, message.Response); 370return Response.FromValue((PolicyDefinitionData)null, message.Response); 372throw ClientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 428return Response.FromValue(value, message.Response); 431throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 458switch (message.Response.Status) 463using var document = JsonDocument.Parse(message.Response.ContentStream); 465return Response.FromValue(value, message.Response); 468throw ClientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 512return message.Response; 514throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 536switch (message.Response.Status) 540return message.Response; 542throw ClientDiagnostics.CreateRequestFailedException(message.Response); 582switch (message.Response.Status) 587using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 589return Response.FromValue(value, message.Response); 592return Response.FromValue((PolicyDefinitionData)null, message.Response); 594throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 616switch (message.Response.Status) 621using var document = JsonDocument.Parse(message.Response.ContentStream); 623return Response.FromValue(value, message.Response); 626return Response.FromValue((PolicyDefinitionData)null, message.Response); 628throw ClientDiagnostics.CreateRequestFailedException(message.Response); 672switch (message.Response.Status) 677using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 679return Response.FromValue(value, message.Response); 682throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 701switch (message.Response.Status) 706using var document = JsonDocument.Parse(message.Response.ContentStream); 708return Response.FromValue(value, message.Response); 711throw ClientDiagnostics.CreateRequestFailedException(message.Response); 746switch (message.Response.Status) 751using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 753return Response.FromValue(value, message.Response); 756throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 768switch (message.Response.Status) 773using var document = JsonDocument.Parse(message.Response.ContentStream); 775return Response.FromValue(value, message.Response); 778throw ClientDiagnostics.CreateRequestFailedException(message.Response); 822switch (message.Response.Status) 827using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 829return Response.FromValue(value, message.Response); 832throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 851switch (message.Response.Status) 856using var document = JsonDocument.Parse(message.Response.ContentStream); 858return Response.FromValue(value, message.Response); 861throw ClientDiagnostics.CreateRequestFailedException(message.Response); 899switch (message.Response.Status) 904using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 906return Response.FromValue(value, message.Response); 909throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 933switch (message.Response.Status) 938using var document = JsonDocument.Parse(message.Response.ContentStream); 940return Response.FromValue(value, message.Response); 943throw ClientDiagnostics.CreateRequestFailedException(message.Response); 976switch (message.Response.Status) 981using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 983return Response.FromValue(value, message.Response); 986throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1005switch (message.Response.Status) 1010using var document = JsonDocument.Parse(message.Response.ContentStream); 1012return Response.FromValue(value, message.Response); 1015throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1053switch (message.Response.Status) 1058using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1060return Response.FromValue(value, message.Response); 1063throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1087switch (message.Response.Status) 1092using var document = JsonDocument.Parse(message.Response.ContentStream); 1094return Response.FromValue(value, message.Response); 1097throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\PolicyExemptionsRestOperations.cs (88)
82switch (message.Response.Status) 86return message.Response; 88throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 114return message.Response; 116throw ClientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 203switch (message.Response.Status) 209using var document = JsonDocument.Parse(message.Response.ContentStream); 211return Response.FromValue(value, message.Response); 214throw ClientDiagnostics.CreateRequestFailedException(message.Response); 254switch (message.Response.Status) 259using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 261return Response.FromValue(value, message.Response); 264return Response.FromValue((PolicyExemptionData)null, message.Response); 266throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 288switch (message.Response.Status) 293using var document = JsonDocument.Parse(message.Response.ContentStream); 295return Response.FromValue(value, message.Response); 298return Response.FromValue((PolicyExemptionData)null, message.Response); 300throw ClientDiagnostics.CreateRequestFailedException(message.Response); 339switch (message.Response.Status) 344using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 346return Response.FromValue(value, message.Response); 349throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 372using var document = JsonDocument.Parse(message.Response.ContentStream); 374return Response.FromValue(value, message.Response); 377throw ClientDiagnostics.CreateRequestFailedException(message.Response); 423switch (message.Response.Status) 428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 430return Response.FromValue(value, message.Response); 433throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 456switch (message.Response.Status) 461using var document = JsonDocument.Parse(message.Response.ContentStream); 463return Response.FromValue(value, message.Response); 466throw ClientDiagnostics.CreateRequestFailedException(message.Response); 540switch (message.Response.Status) 545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 547return Response.FromValue(value, message.Response); 550throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 593switch (message.Response.Status) 598using var document = JsonDocument.Parse(message.Response.ContentStream); 600return Response.FromValue(value, message.Response); 603throw ClientDiagnostics.CreateRequestFailedException(message.Response); 642switch (message.Response.Status) 647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 649return Response.FromValue(value, message.Response); 652throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 670switch (message.Response.Status) 675using var document = JsonDocument.Parse(message.Response.ContentStream); 677return Response.FromValue(value, message.Response); 680throw ClientDiagnostics.CreateRequestFailedException(message.Response); 717switch (message.Response.Status) 722using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 724return Response.FromValue(value, message.Response); 727throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 750switch (message.Response.Status) 755using var document = JsonDocument.Parse(message.Response.ContentStream); 757return Response.FromValue(value, message.Response); 760throw ClientDiagnostics.CreateRequestFailedException(message.Response); 802switch (message.Response.Status) 807using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 809return Response.FromValue(value, message.Response); 812throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 840switch (message.Response.Status) 845using var document = JsonDocument.Parse(message.Response.ContentStream); 847return Response.FromValue(value, message.Response); 850throw ClientDiagnostics.CreateRequestFailedException(message.Response); 912switch (message.Response.Status) 917using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 919return Response.FromValue(value, message.Response); 922throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 970switch (message.Response.Status) 975using var document = JsonDocument.Parse(message.Response.ContentStream); 977return Response.FromValue(value, message.Response); 980throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1017switch (message.Response.Status) 1022using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1024return Response.FromValue(value, message.Response); 1027throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1050switch (message.Response.Status) 1055using var document = JsonDocument.Parse(message.Response.ContentStream); 1057return Response.FromValue(value, message.Response); 1060throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\PolicySetDefinitionsRestOperations.cs (106)
91switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 135using var document = JsonDocument.Parse(message.Response.ContentStream); 137return Response.FromValue(value, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 184return message.Response; 186throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 208switch (message.Response.Status) 212return message.Response; 214throw ClientDiagnostics.CreateRequestFailedException(message.Response); 254switch (message.Response.Status) 259using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 261return Response.FromValue(value, message.Response); 264return Response.FromValue((PolicySetDefinitionData)null, message.Response); 266throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 288switch (message.Response.Status) 293using var document = JsonDocument.Parse(message.Response.ContentStream); 295return Response.FromValue(value, message.Response); 298return Response.FromValue((PolicySetDefinitionData)null, message.Response); 300throw ClientDiagnostics.CreateRequestFailedException(message.Response); 333switch (message.Response.Status) 338using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((PolicySetDefinitionData)null, message.Response); 345throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 362switch (message.Response.Status) 367using var document = JsonDocument.Parse(message.Response.ContentStream); 369return Response.FromValue(value, message.Response); 372return Response.FromValue((PolicySetDefinitionData)null, message.Response); 374throw ClientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw ClientDiagnostics.CreateRequestFailedException(message.Response); 492switch (message.Response.Status) 497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 499return Response.FromValue(value, message.Response); 502throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw ClientDiagnostics.CreateRequestFailedException(message.Response); 573switch (message.Response.Status) 579using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 581return Response.FromValue(value, message.Response); 584throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 611switch (message.Response.Status) 617using var document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw ClientDiagnostics.CreateRequestFailedException(message.Response); 662switch (message.Response.Status) 666return message.Response; 668throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 690switch (message.Response.Status) 694return message.Response; 696throw ClientDiagnostics.CreateRequestFailedException(message.Response); 736switch (message.Response.Status) 741using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 743return Response.FromValue(value, message.Response); 746return Response.FromValue((PolicySetDefinitionData)null, message.Response); 748throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 770switch (message.Response.Status) 775using var document = JsonDocument.Parse(message.Response.ContentStream); 777return Response.FromValue(value, message.Response); 780return Response.FromValue((PolicySetDefinitionData)null, message.Response); 782throw ClientDiagnostics.CreateRequestFailedException(message.Response); 826switch (message.Response.Status) 831using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 833return Response.FromValue(value, message.Response); 836throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 855switch (message.Response.Status) 860using var document = JsonDocument.Parse(message.Response.ContentStream); 862return Response.FromValue(value, message.Response); 865throw ClientDiagnostics.CreateRequestFailedException(message.Response); 903switch (message.Response.Status) 908using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 910return Response.FromValue(value, message.Response); 913throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 937switch (message.Response.Status) 942using var document = JsonDocument.Parse(message.Response.ContentStream); 944return Response.FromValue(value, message.Response); 947throw ClientDiagnostics.CreateRequestFailedException(message.Response); 980switch (message.Response.Status) 985using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 987return Response.FromValue(value, message.Response); 990throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1009switch (message.Response.Status) 1014using var document = JsonDocument.Parse(message.Response.ContentStream); 1016return Response.FromValue(value, message.Response); 1019throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1057switch (message.Response.Status) 1062using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1064return Response.FromValue(value, message.Response); 1067throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1091switch (message.Response.Status) 1096using var document = JsonDocument.Parse(message.Response.ContentStream); 1098return Response.FromValue(value, message.Response); 1101throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\ProviderResourceTypesRestOperations.cs (8)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\ProvidersRestOperations.cs (74)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 198switch (message.Response.Status) 203using var document = JsonDocument.Parse(message.Response.ContentStream); 205return Response.FromValue(value, message.Response); 208throw ClientDiagnostics.CreateRequestFailedException(message.Response); 257switch (message.Response.Status) 262using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 264return Response.FromValue(value, message.Response); 267throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 290switch (message.Response.Status) 295using var document = JsonDocument.Parse(message.Response.ContentStream); 297return Response.FromValue(value, message.Response); 300throw ClientDiagnostics.CreateRequestFailedException(message.Response); 344switch (message.Response.Status) 349using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 351return Response.FromValue(value, message.Response); 354throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 373switch (message.Response.Status) 378using var document = JsonDocument.Parse(message.Response.ContentStream); 380return Response.FromValue(value, message.Response); 383throw ClientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 440switch (message.Response.Status) 445using var document = JsonDocument.Parse(message.Response.ContentStream); 447return Response.FromValue(value, message.Response); 450throw ClientDiagnostics.CreateRequestFailedException(message.Response); 495switch (message.Response.Status) 500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 502return Response.FromValue(value, message.Response); 505return Response.FromValue((ProviderData)null, message.Response); 507throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 530switch (message.Response.Status) 535using var document = JsonDocument.Parse(message.Response.ContentStream); 537return Response.FromValue(value, message.Response); 540return Response.FromValue((ProviderData)null, message.Response); 542throw ClientDiagnostics.CreateRequestFailedException(message.Response); 580switch (message.Response.Status) 585using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 587return Response.FromValue(value, message.Response); 590throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 613using var document = JsonDocument.Parse(message.Response.ContentStream); 615return Response.FromValue(value, message.Response); 618throw ClientDiagnostics.CreateRequestFailedException(message.Response); 656switch (message.Response.Status) 661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 663return Response.FromValue(value, message.Response); 666throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 690switch (message.Response.Status) 695using var document = JsonDocument.Parse(message.Response.ContentStream); 697return Response.FromValue(value, message.Response); 700throw ClientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 740return Response.FromValue(value, message.Response); 743throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 767using var document = JsonDocument.Parse(message.Response.ContentStream); 769return Response.FromValue(value, message.Response); 772throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\ResourceGroupsRestOperations.cs (66)
91switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 135using var document = JsonDocument.Parse(message.Response.ContentStream); 137return Response.FromValue(value, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 185switch (message.Response.Status) 189return message.Response; 191throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 218return message.Response; 220throw ClientDiagnostics.CreateRequestFailedException(message.Response); 260switch (message.Response.Status) 265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 267return Response.FromValue(value, message.Response); 270return Response.FromValue((ResourceGroupData)null, message.Response); 272throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 294switch (message.Response.Status) 299using var document = JsonDocument.Parse(message.Response.ContentStream); 301return Response.FromValue(value, message.Response); 304return Response.FromValue((ResourceGroupData)null, message.Response); 306throw ClientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 392switch (message.Response.Status) 397using var document = JsonDocument.Parse(message.Response.ContentStream); 399return Response.FromValue(value, message.Response); 402throw ClientDiagnostics.CreateRequestFailedException(message.Response); 452switch (message.Response.Status) 456return message.Response; 458throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 485switch (message.Response.Status) 489return message.Response; 491throw ClientDiagnostics.CreateRequestFailedException(message.Response); 535switch (message.Response.Status) 540using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 542return Response.FromValue(value, message.Response); 545throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw ClientDiagnostics.CreateRequestFailedException(message.Response); 624switch (message.Response.Status) 628return message.Response; 630throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 657switch (message.Response.Status) 661return message.Response; 663throw ClientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 717return message.Response; 719throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 750return message.Response; 752throw ClientDiagnostics.CreateRequestFailedException(message.Response); 790switch (message.Response.Status) 795using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 797return Response.FromValue(value, message.Response); 800throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 824switch (message.Response.Status) 829using var document = JsonDocument.Parse(message.Response.ContentStream); 831return Response.FromValue(value, message.Response); 834throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\ResourceLinksRestOperations.cs (56)
74switch (message.Response.Status) 78return message.Response; 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 101return message.Response; 103throw ClientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 151using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 153return Response.FromValue(value, message.Response); 156throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 178switch (message.Response.Status) 184using var document = JsonDocument.Parse(message.Response.ContentStream); 186return Response.FromValue(value, message.Response); 189throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((ResourceLinkData)null, message.Response); 234throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261return Response.FromValue((ResourceLinkData)null, message.Response); 263throw ClientDiagnostics.CreateRequestFailedException(message.Response); 302switch (message.Response.Status) 307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 309return Response.FromValue(value, message.Response); 312throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330switch (message.Response.Status) 335using var document = JsonDocument.Parse(message.Response.ContentStream); 337return Response.FromValue(value, message.Response); 340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 382return Response.FromValue(value, message.Response); 385throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 402switch (message.Response.Status) 407using var document = JsonDocument.Parse(message.Response.ContentStream); 409return Response.FromValue(value, message.Response); 412throw ClientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482switch (message.Response.Status) 487using var document = JsonDocument.Parse(message.Response.ContentStream); 489return Response.FromValue(value, message.Response); 492throw ClientDiagnostics.CreateRequestFailedException(message.Response); 528switch (message.Response.Status) 533using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 535return Response.FromValue(value, message.Response); 538throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 560switch (message.Response.Status) 565using var document = JsonDocument.Parse(message.Response.ContentStream); 567return Response.FromValue(value, message.Response); 570throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\SubscriptionsRestOperations.cs (34)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw ClientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return Response.FromValue(value, message.Response); 162return Response.FromValue((SubscriptionData)null, message.Response); 164throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 181switch (message.Response.Status) 186using var document = JsonDocument.Parse(message.Response.ContentStream); 188return Response.FromValue(value, message.Response); 191return Response.FromValue((SubscriptionData)null, message.Response); 193throw ClientDiagnostics.CreateRequestFailedException(message.Response); 218switch (message.Response.Status) 223using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 225return Response.FromValue(value, message.Response); 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 279switch (message.Response.Status) 284using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 286return Response.FromValue(value, message.Response); 289throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 306switch (message.Response.Status) 311using var document = JsonDocument.Parse(message.Response.ContentStream); 313return Response.FromValue(value, message.Response); 316throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\TagsRestOperations.cs (76)
89switch (message.Response.Status) 93return message.Response; 95throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 126return message.Response; 128throw ClientDiagnostics.CreateRequestFailedException(message.Response); 175switch (message.Response.Status) 181using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 183return Response.FromValue(value, message.Response); 186throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 213switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw ClientDiagnostics.CreateRequestFailedException(message.Response); 264switch (message.Response.Status) 270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 272return Response.FromValue(value, message.Response); 275throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 297switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308throw ClientDiagnostics.CreateRequestFailedException(message.Response); 348switch (message.Response.Status) 352return message.Response; 354throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 380return message.Response; 382throw ClientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 443switch (message.Response.Status) 448using var document = JsonDocument.Parse(message.Response.ContentStream); 450return Response.FromValue(value, message.Response); 453throw ClientDiagnostics.CreateRequestFailedException(message.Response); 496switch (message.Response.Status) 501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 503return Response.FromValue(value, message.Response); 506throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 528switch (message.Response.Status) 533using var document = JsonDocument.Parse(message.Response.ContentStream); 535return Response.FromValue(value, message.Response); 538throw ClientDiagnostics.CreateRequestFailedException(message.Response); 581switch (message.Response.Status) 586using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 588return Response.FromValue(value, message.Response); 591throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 613switch (message.Response.Status) 618using var document = JsonDocument.Parse(message.Response.ContentStream); 620return Response.FromValue(value, message.Response); 623throw ClientDiagnostics.CreateRequestFailedException(message.Response); 657switch (message.Response.Status) 662using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 664return Response.FromValue(value, message.Response); 667return Response.FromValue((TagResourceData)null, message.Response); 669throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 686switch (message.Response.Status) 691using var document = JsonDocument.Parse(message.Response.ContentStream); 693return Response.FromValue(value, message.Response); 696return Response.FromValue((TagResourceData)null, message.Response); 698throw ClientDiagnostics.CreateRequestFailedException(message.Response); 732switch (message.Response.Status) 735return message.Response; 737throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 754switch (message.Response.Status) 757return message.Response; 759throw ClientDiagnostics.CreateRequestFailedException(message.Response); 795switch (message.Response.Status) 800using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 802return Response.FromValue(value, message.Response); 805throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 827switch (message.Response.Status) 832using var document = JsonDocument.Parse(message.Response.ContentStream); 834return Response.FromValue(value, message.Response); 837throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Resources\Generated\RestOperations\TenantsRestOperations.cs (16)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 87switch (message.Response.Status) 92using var document = JsonDocument.Parse(message.Response.ContentStream); 94return Response.FromValue(value, message.Response); 97throw ClientDiagnostics.CreateRequestFailedException(message.Response); 128switch (message.Response.Status) 133using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 135return Response.FromValue(value, message.Response); 138throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 155switch (message.Response.Status) 160using var document = JsonDocument.Parse(message.Response.ContentStream); 162return Response.FromValue(value, message.Response); 165throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.AppConfiguration (171)
Generated\RestOperations\AppConfigurationManagementRestOperations.cs (8)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return Response.FromValue(value, message.Response); 95throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 117switch (message.Response.Status) 122using var document = JsonDocument.Parse(message.Response.ContentStream); 124return Response.FromValue(value, message.Response); 127throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ConfigurationStoresRestOperations.cs (92)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw ClientDiagnostics.CreateRequestFailedException(message.Response); 165switch (message.Response.Status) 170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 172return Response.FromValue(value, message.Response); 175throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 198switch (message.Response.Status) 203using var document = JsonDocument.Parse(message.Response.ContentStream); 205return Response.FromValue(value, message.Response); 208throw ClientDiagnostics.CreateRequestFailedException(message.Response); 255switch (message.Response.Status) 260using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 262return Response.FromValue(value, message.Response); 265return Response.FromValue((ConfigurationStoreData)null, message.Response); 267throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 294switch (message.Response.Status) 299using var document = JsonDocument.Parse(message.Response.ContentStream); 301return Response.FromValue(value, message.Response); 304return Response.FromValue((ConfigurationStoreData)null, message.Response); 306throw ClientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 366return message.Response; 368throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 400switch (message.Response.Status) 404return message.Response; 406throw ClientDiagnostics.CreateRequestFailedException(message.Response); 453switch (message.Response.Status) 458return message.Response; 460throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 487switch (message.Response.Status) 492return message.Response; 494throw ClientDiagnostics.CreateRequestFailedException(message.Response); 550switch (message.Response.Status) 554return message.Response; 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 588switch (message.Response.Status) 592return message.Response; 594throw ClientDiagnostics.CreateRequestFailedException(message.Response); 647switch (message.Response.Status) 652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 654return Response.FromValue(value, message.Response); 657throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 685switch (message.Response.Status) 690using var document = JsonDocument.Parse(message.Response.ContentStream); 692return Response.FromValue(value, message.Response); 695throw ClientDiagnostics.CreateRequestFailedException(message.Response); 752switch (message.Response.Status) 757using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 759return Response.FromValue(value, message.Response); 762throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 794switch (message.Response.Status) 799using var document = JsonDocument.Parse(message.Response.ContentStream); 801return Response.FromValue(value, message.Response); 804throw ClientDiagnostics.CreateRequestFailedException(message.Response); 861switch (message.Response.Status) 866using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 868return Response.FromValue(value, message.Response); 871throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 903switch (message.Response.Status) 908using var document = JsonDocument.Parse(message.Response.ContentStream); 910return Response.FromValue(value, message.Response); 913throw ClientDiagnostics.CreateRequestFailedException(message.Response); 950switch (message.Response.Status) 955using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 957return Response.FromValue(value, message.Response); 960throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 983switch (message.Response.Status) 988using var document = JsonDocument.Parse(message.Response.ContentStream); 990return Response.FromValue(value, message.Response); 993throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1035switch (message.Response.Status) 1040using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1042return Response.FromValue(value, message.Response); 1045throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1073switch (message.Response.Status) 1078using var document = JsonDocument.Parse(message.Response.ContentStream); 1080return Response.FromValue(value, message.Response); 1083throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1130switch (message.Response.Status) 1135using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1137return Response.FromValue(value, message.Response); 1140throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1173switch (message.Response.Status) 1178using var document = JsonDocument.Parse(message.Response.ContentStream); 1180return Response.FromValue(value, message.Response); 1183throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418return message.Response; 420throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 452switch (message.Response.Status) 457return message.Response; 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((PrivateLinkResourceData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((PrivateLinkResourceData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.Communication (101)
Generated\RestOperations\CommunicationServiceRestOperations.cs (94)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 117using var document = JsonDocument.Parse(message.Response.ContentStream); 119return Response.FromValue(value, message.Response); 122throw ClientDiagnostics.CreateRequestFailedException(message.Response); 178switch (message.Response.Status) 183using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 185return Response.FromValue(value, message.Response); 188throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226throw ClientDiagnostics.CreateRequestFailedException(message.Response); 260switch (message.Response.Status) 265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 267return Response.FromValue(value, message.Response); 270throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287switch (message.Response.Status) 292using var document = JsonDocument.Parse(message.Response.ContentStream); 294return Response.FromValue(value, message.Response); 297throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 370switch (message.Response.Status) 375using var document = JsonDocument.Parse(message.Response.ContentStream); 377return Response.FromValue(value, message.Response); 380throw ClientDiagnostics.CreateRequestFailedException(message.Response); 435switch (message.Response.Status) 440using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 442return Response.FromValue(value, message.Response); 445throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 473switch (message.Response.Status) 478using var document = JsonDocument.Parse(message.Response.ContentStream); 480return Response.FromValue(value, message.Response); 483throw ClientDiagnostics.CreateRequestFailedException(message.Response); 530switch (message.Response.Status) 535using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 537return Response.FromValue(value, message.Response); 540return Response.FromValue((CommunicationServiceData)null, message.Response); 542throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 569switch (message.Response.Status) 574using var document = JsonDocument.Parse(message.Response.ContentStream); 576return Response.FromValue(value, message.Response); 579return Response.FromValue((CommunicationServiceData)null, message.Response); 581throw ClientDiagnostics.CreateRequestFailedException(message.Response); 636switch (message.Response.Status) 640return message.Response; 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 670switch (message.Response.Status) 674return message.Response; 676throw ClientDiagnostics.CreateRequestFailedException(message.Response); 723switch (message.Response.Status) 728return message.Response; 730throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 757switch (message.Response.Status) 762return message.Response; 764throw ClientDiagnostics.CreateRequestFailedException(message.Response); 812switch (message.Response.Status) 817using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 819return Response.FromValue(value, message.Response); 822throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 849switch (message.Response.Status) 854using var document = JsonDocument.Parse(message.Response.ContentStream); 856return Response.FromValue(value, message.Response); 859throw ClientDiagnostics.CreateRequestFailedException(message.Response); 916switch (message.Response.Status) 921using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 923return Response.FromValue(value, message.Response); 926throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 958switch (message.Response.Status) 963using var document = JsonDocument.Parse(message.Response.ContentStream); 965return Response.FromValue(value, message.Response); 968throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1004switch (message.Response.Status) 1009using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1011return Response.FromValue(value, message.Response); 1014throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1036switch (message.Response.Status) 1041using var document = JsonDocument.Parse(message.Response.ContentStream); 1043return Response.FromValue(value, message.Response); 1046throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1087switch (message.Response.Status) 1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1094return Response.FromValue(value, message.Response); 1097throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1124switch (message.Response.Status) 1129using var document = JsonDocument.Parse(message.Response.ContentStream); 1131return Response.FromValue(value, message.Response); 1134throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.Compute (2475)
Generated\RestOperations\AvailabilitySetsRestOperations.cs (72)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150throw ClientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 213return Response.FromValue(value, message.Response); 216throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 248switch (message.Response.Status) 253using var document = JsonDocument.Parse(message.Response.ContentStream); 255return Response.FromValue(value, message.Response); 258throw ClientDiagnostics.CreateRequestFailedException(message.Response); 304switch (message.Response.Status) 308return message.Response; 310throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 337switch (message.Response.Status) 341return message.Response; 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400return Response.FromValue((AvailabilitySetData)null, message.Response); 402throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 429switch (message.Response.Status) 434using var document = JsonDocument.Parse(message.Response.ContentStream); 436return Response.FromValue(value, message.Response); 439return Response.FromValue((AvailabilitySetData)null, message.Response); 441throw ClientDiagnostics.CreateRequestFailedException(message.Response); 480switch (message.Response.Status) 485using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 487return Response.FromValue(value, message.Response); 490throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 513using var document = JsonDocument.Parse(message.Response.ContentStream); 515return Response.FromValue(value, message.Response); 518throw ClientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 591switch (message.Response.Status) 596using var document = JsonDocument.Parse(message.Response.ContentStream); 598return Response.FromValue(value, message.Response); 601throw ClientDiagnostics.CreateRequestFailedException(message.Response); 649switch (message.Response.Status) 654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 656return Response.FromValue(value, message.Response); 659throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 686switch (message.Response.Status) 691using var document = JsonDocument.Parse(message.Response.ContentStream); 693return Response.FromValue(value, message.Response); 696throw ClientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 740return Response.FromValue(value, message.Response); 743throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 766switch (message.Response.Status) 771using var document = JsonDocument.Parse(message.Response.ContentStream); 773return Response.FromValue(value, message.Response); 776throw ClientDiagnostics.CreateRequestFailedException(message.Response); 817switch (message.Response.Status) 822using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 824return Response.FromValue(value, message.Response); 827throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 854switch (message.Response.Status) 859using var document = JsonDocument.Parse(message.Response.ContentStream); 861return Response.FromValue(value, message.Response); 864throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CapacityReservationGroupsRestOperations.cs (64)
98switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 141switch (message.Response.Status) 147using var document = JsonDocument.Parse(message.Response.ContentStream); 149return Response.FromValue(value, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return Response.FromValue(value, message.Response); 260throw ClientDiagnostics.CreateRequestFailedException(message.Response); 307switch (message.Response.Status) 311return message.Response; 313throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 340switch (message.Response.Status) 344return message.Response; 346throw ClientDiagnostics.CreateRequestFailedException(message.Response); 398switch (message.Response.Status) 403using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 405return Response.FromValue(value, message.Response); 408return Response.FromValue((CapacityReservationGroupData)null, message.Response); 410throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 438switch (message.Response.Status) 443using var document = JsonDocument.Parse(message.Response.ContentStream); 445return Response.FromValue(value, message.Response); 448return Response.FromValue((CapacityReservationGroupData)null, message.Response); 450throw ClientDiagnostics.CreateRequestFailedException(message.Response); 496switch (message.Response.Status) 501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 503return Response.FromValue(value, message.Response); 506throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 529switch (message.Response.Status) 534using var document = JsonDocument.Parse(message.Response.ContentStream); 536return Response.FromValue(value, message.Response); 539throw ClientDiagnostics.CreateRequestFailedException(message.Response); 578switch (message.Response.Status) 583using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 585return Response.FromValue(value, message.Response); 588throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw ClientDiagnostics.CreateRequestFailedException(message.Response); 658switch (message.Response.Status) 663using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 665return Response.FromValue(value, message.Response); 668throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 696switch (message.Response.Status) 701using var document = JsonDocument.Parse(message.Response.ContentStream); 703return Response.FromValue(value, message.Response); 706throw ClientDiagnostics.CreateRequestFailedException(message.Response); 743switch (message.Response.Status) 748using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 750return Response.FromValue(value, message.Response); 753throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 776switch (message.Response.Status) 781using var document = JsonDocument.Parse(message.Response.ContentStream); 783return Response.FromValue(value, message.Response); 786throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CapacityReservationsRestOperations.cs (44)
105switch (message.Response.Status) 109return message.Response; 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 221return message.Response; 223throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 325return message.Response; 327throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 364return message.Response; 366throw ClientDiagnostics.CreateRequestFailedException(message.Response); 425switch (message.Response.Status) 430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 432return Response.FromValue(value, message.Response); 435return Response.FromValue((CapacityReservationData)null, message.Response); 437throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 470switch (message.Response.Status) 475using var document = JsonDocument.Parse(message.Response.ContentStream); 477return Response.FromValue(value, message.Response); 480return Response.FromValue((CapacityReservationData)null, message.Response); 482throw ClientDiagnostics.CreateRequestFailedException(message.Response); 530switch (message.Response.Status) 535using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 537return Response.FromValue(value, message.Response); 540throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567switch (message.Response.Status) 572using var document = JsonDocument.Parse(message.Response.ContentStream); 574return Response.FromValue(value, message.Response); 577throw ClientDiagnostics.CreateRequestFailedException(message.Response); 623switch (message.Response.Status) 628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 630return Response.FromValue(value, message.Response); 633throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 665switch (message.Response.Status) 670using var document = JsonDocument.Parse(message.Response.ContentStream); 672return Response.FromValue(value, message.Response); 675throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceOperatingSystemsRestOperations.cs (52)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((OSVersionData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((OSVersionData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 188return Response.FromValue(value, message.Response); 191throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 213switch (message.Response.Status) 218using var document = JsonDocument.Parse(message.Response.ContentStream); 220return Response.FromValue(value, message.Response); 223throw ClientDiagnostics.CreateRequestFailedException(message.Response); 270switch (message.Response.Status) 275using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 277return Response.FromValue(value, message.Response); 280return Response.FromValue((OSFamilyData)null, message.Response); 282throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 309switch (message.Response.Status) 314using var document = JsonDocument.Parse(message.Response.ContentStream); 316return Response.FromValue(value, message.Response); 319return Response.FromValue((OSFamilyData)null, message.Response); 321throw ClientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 367using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 369return Response.FromValue(value, message.Response); 372throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 399using var document = JsonDocument.Parse(message.Response.ContentStream); 401return Response.FromValue(value, message.Response); 404throw ClientDiagnostics.CreateRequestFailedException(message.Response); 445switch (message.Response.Status) 450using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 452return Response.FromValue(value, message.Response); 455throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482switch (message.Response.Status) 487using var document = JsonDocument.Parse(message.Response.ContentStream); 489return Response.FromValue(value, message.Response); 492throw ClientDiagnostics.CreateRequestFailedException(message.Response); 533switch (message.Response.Status) 538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 540return Response.FromValue(value, message.Response); 543throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 570switch (message.Response.Status) 575using var document = JsonDocument.Parse(message.Response.ContentStream); 577return Response.FromValue(value, message.Response); 580throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceRoleInstancesRestOperations.cs (64)
97switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 141return message.Response; 143throw ClientDiagnostics.CreateRequestFailedException(message.Response); 202switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212return Response.FromValue((RoleInstanceData)null, message.Response); 214throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 252using var document = JsonDocument.Parse(message.Response.ContentStream); 254return Response.FromValue(value, message.Response); 257return Response.FromValue((RoleInstanceData)null, message.Response); 259throw ClientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 321return Response.FromValue(value, message.Response); 324throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 361using var document = JsonDocument.Parse(message.Response.ContentStream); 363return Response.FromValue(value, message.Response); 366throw ClientDiagnostics.CreateRequestFailedException(message.Response); 419switch (message.Response.Status) 424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 426return Response.FromValue(value, message.Response); 429throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 462using var document = JsonDocument.Parse(message.Response.ContentStream); 464return Response.FromValue(value, message.Response); 467throw ClientDiagnostics.CreateRequestFailedException(message.Response); 522switch (message.Response.Status) 526return message.Response; 528throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 560switch (message.Response.Status) 564return message.Response; 566throw ClientDiagnostics.CreateRequestFailedException(message.Response); 621switch (message.Response.Status) 625return message.Response; 627throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 659switch (message.Response.Status) 663return message.Response; 665throw ClientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 724return message.Response; 726throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 758switch (message.Response.Status) 762return message.Response; 764throw ClientDiagnostics.CreateRequestFailedException(message.Response); 819switch (message.Response.Status) 824return Response.FromValue(value, message.Response); 827throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 859switch (message.Response.Status) 864return Response.FromValue(value, message.Response); 867throw ClientDiagnostics.CreateRequestFailedException(message.Response); 914switch (message.Response.Status) 919using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 921return Response.FromValue(value, message.Response); 924throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 957switch (message.Response.Status) 962using var document = JsonDocument.Parse(message.Response.ContentStream); 964return Response.FromValue(value, message.Response); 967throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceRolesRestOperations.cs (26)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((CloudServiceRoleData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((CloudServiceRoleData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 207return Response.FromValue(value, message.Response); 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServicesRestOperations.cs (104)
97switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 131switch (message.Response.Status) 135return message.Response; 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 192switch (message.Response.Status) 195return message.Response; 197throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 225switch (message.Response.Status) 228return message.Response; 230throw ClientDiagnostics.CreateRequestFailedException(message.Response); 277switch (message.Response.Status) 282return message.Response; 284throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 311switch (message.Response.Status) 316return message.Response; 318throw ClientDiagnostics.CreateRequestFailedException(message.Response); 365switch (message.Response.Status) 370using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 372return Response.FromValue(value, message.Response); 375return Response.FromValue((CloudServiceData)null, message.Response); 377throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 404switch (message.Response.Status) 409using var document = JsonDocument.Parse(message.Response.ContentStream); 411return Response.FromValue(value, message.Response); 414return Response.FromValue((CloudServiceData)null, message.Response); 416throw ClientDiagnostics.CreateRequestFailedException(message.Response); 464switch (message.Response.Status) 469using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 471return Response.FromValue(value, message.Response); 474throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw ClientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 577using var document = JsonDocument.Parse(message.Response.ContentStream); 579return Response.FromValue(value, message.Response); 582throw ClientDiagnostics.CreateRequestFailedException(message.Response); 623switch (message.Response.Status) 628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 630return Response.FromValue(value, message.Response); 633throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 655switch (message.Response.Status) 660using var document = JsonDocument.Parse(message.Response.ContentStream); 662return Response.FromValue(value, message.Response); 665throw ClientDiagnostics.CreateRequestFailedException(message.Response); 713switch (message.Response.Status) 717return message.Response; 719throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 750return message.Response; 752throw ClientDiagnostics.CreateRequestFailedException(message.Response); 800switch (message.Response.Status) 804return message.Response; 806throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 833switch (message.Response.Status) 837return message.Response; 839throw ClientDiagnostics.CreateRequestFailedException(message.Response); 895switch (message.Response.Status) 899return message.Response; 901throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 929switch (message.Response.Status) 933return message.Response; 935throw ClientDiagnostics.CreateRequestFailedException(message.Response); 991switch (message.Response.Status) 995return message.Response; 997throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1025switch (message.Response.Status) 1029return message.Response; 1031throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1087switch (message.Response.Status) 1091return message.Response; 1093throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1121switch (message.Response.Status) 1125return message.Response; 1127throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1183switch (message.Response.Status) 1187return message.Response; 1189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1217switch (message.Response.Status) 1221return message.Response; 1223throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1259switch (message.Response.Status) 1264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1266return Response.FromValue(value, message.Response); 1269throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1291switch (message.Response.Status) 1296using var document = JsonDocument.Parse(message.Response.ContentStream); 1298return Response.FromValue(value, message.Response); 1301throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1342switch (message.Response.Status) 1347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1349return Response.FromValue(value, message.Response); 1352throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1379switch (message.Response.Status) 1384using var document = JsonDocument.Parse(message.Response.ContentStream); 1386return Response.FromValue(value, message.Response); 1389throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServicesUpdateDomainRestOperations.cs (30)
100switch (message.Response.Status) 104return message.Response; 106throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 139return message.Response; 141throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 234using var document = JsonDocument.Parse(message.Response.ContentStream); 236return Response.FromValue(value, message.Response); 239throw ClientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 294return Response.FromValue(value, message.Response); 297throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 324switch (message.Response.Status) 329using var document = JsonDocument.Parse(message.Response.ContentStream); 331return Response.FromValue(value, message.Response); 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 380switch (message.Response.Status) 385using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 387return Response.FromValue(value, message.Response); 390throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422switch (message.Response.Status) 427using var document = JsonDocument.Parse(message.Response.ContentStream); 429return Response.FromValue(value, message.Response); 432throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CommunityGalleriesRestOperations.cs (8)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CommunityGalleryImagesRestOperations.cs (8)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CommunityGalleryImageVersionsRestOperations.cs (8)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DedicatedHostGroupsRestOperations.cs (64)
98switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 141switch (message.Response.Status) 147using var document = JsonDocument.Parse(message.Response.ContentStream); 149return Response.FromValue(value, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return Response.FromValue(value, message.Response); 260throw ClientDiagnostics.CreateRequestFailedException(message.Response); 306switch (message.Response.Status) 310return message.Response; 312throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 339switch (message.Response.Status) 343return message.Response; 345throw ClientDiagnostics.CreateRequestFailedException(message.Response); 397switch (message.Response.Status) 402using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 404return Response.FromValue(value, message.Response); 407return Response.FromValue((DedicatedHostGroupData)null, message.Response); 409throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 437switch (message.Response.Status) 442using var document = JsonDocument.Parse(message.Response.ContentStream); 444return Response.FromValue(value, message.Response); 447return Response.FromValue((DedicatedHostGroupData)null, message.Response); 449throw ClientDiagnostics.CreateRequestFailedException(message.Response); 490switch (message.Response.Status) 495using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 497return Response.FromValue(value, message.Response); 500throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 522switch (message.Response.Status) 527using var document = JsonDocument.Parse(message.Response.ContentStream); 529return Response.FromValue(value, message.Response); 532throw ClientDiagnostics.CreateRequestFailedException(message.Response); 566switch (message.Response.Status) 571using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 573return Response.FromValue(value, message.Response); 576throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 593switch (message.Response.Status) 598using var document = JsonDocument.Parse(message.Response.ContentStream); 600return Response.FromValue(value, message.Response); 603throw ClientDiagnostics.CreateRequestFailedException(message.Response); 644switch (message.Response.Status) 649using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 651return Response.FromValue(value, message.Response); 654throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 681switch (message.Response.Status) 686using var document = JsonDocument.Parse(message.Response.ContentStream); 688return Response.FromValue(value, message.Response); 691throw ClientDiagnostics.CreateRequestFailedException(message.Response); 727switch (message.Response.Status) 732using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 734return Response.FromValue(value, message.Response); 737throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 759switch (message.Response.Status) 764using var document = JsonDocument.Parse(message.Response.ContentStream); 766return Response.FromValue(value, message.Response); 769throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DedicatedHostsRestOperations.cs (44)
105switch (message.Response.Status) 109return message.Response; 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 220return message.Response; 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 317switch (message.Response.Status) 322return message.Response; 324throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 361return message.Response; 363throw ClientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432return Response.FromValue((DedicatedHostData)null, message.Response); 434throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 467switch (message.Response.Status) 472using var document = JsonDocument.Parse(message.Response.ContentStream); 474return Response.FromValue(value, message.Response); 477return Response.FromValue((DedicatedHostData)null, message.Response); 479throw ClientDiagnostics.CreateRequestFailedException(message.Response); 527switch (message.Response.Status) 532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 534return Response.FromValue(value, message.Response); 537throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw ClientDiagnostics.CreateRequestFailedException(message.Response); 620switch (message.Response.Status) 625using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 627return Response.FromValue(value, message.Response); 630throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 662switch (message.Response.Status) 667using var document = JsonDocument.Parse(message.Response.ContentStream); 669return Response.FromValue(value, message.Response); 672throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskAccessesRestOperations.cs (106)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 202return message.Response; 204throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 296return Response.FromValue(value, message.Response); 299return Response.FromValue((DiskAccessData)null, message.Response); 301throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 333using var document = JsonDocument.Parse(message.Response.ContentStream); 335return Response.FromValue(value, message.Response); 338return Response.FromValue((DiskAccessData)null, message.Response); 340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 392return message.Response; 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 426return message.Response; 428throw ClientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw ClientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 577using var document = JsonDocument.Parse(message.Response.ContentStream); 579return Response.FromValue(value, message.Response); 582throw ClientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 667switch (message.Response.Status) 672using var document = JsonDocument.Parse(message.Response.ContentStream); 674return Response.FromValue(value, message.Response); 677throw ClientDiagnostics.CreateRequestFailedException(message.Response); 740switch (message.Response.Status) 744return message.Response; 746throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 783switch (message.Response.Status) 787return message.Response; 789throw ClientDiagnostics.CreateRequestFailedException(message.Response); 843switch (message.Response.Status) 848using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 850return Response.FromValue(value, message.Response); 853return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 855throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 887switch (message.Response.Status) 892using var document = JsonDocument.Parse(message.Response.ContentStream); 894return Response.FromValue(value, message.Response); 897return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 899throw ClientDiagnostics.CreateRequestFailedException(message.Response); 953switch (message.Response.Status) 958return message.Response; 960throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 992switch (message.Response.Status) 997return message.Response; 999throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1047switch (message.Response.Status) 1052using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1054return Response.FromValue(value, message.Response); 1057throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1084switch (message.Response.Status) 1089using var document = JsonDocument.Parse(message.Response.ContentStream); 1091return Response.FromValue(value, message.Response); 1094throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1135switch (message.Response.Status) 1140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1142return Response.FromValue(value, message.Response); 1145throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1172switch (message.Response.Status) 1177using var document = JsonDocument.Parse(message.Response.ContentStream); 1179return Response.FromValue(value, message.Response); 1182throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1218switch (message.Response.Status) 1223using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1225return Response.FromValue(value, message.Response); 1228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1250switch (message.Response.Status) 1255using var document = JsonDocument.Parse(message.Response.ContentStream); 1257return Response.FromValue(value, message.Response); 1260throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1306switch (message.Response.Status) 1311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1313return Response.FromValue(value, message.Response); 1316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1348switch (message.Response.Status) 1353using var document = JsonDocument.Parse(message.Response.ContentStream); 1355return Response.FromValue(value, message.Response); 1358throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskEncryptionSetsRestOperations.cs (76)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 202return message.Response; 204throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 296return Response.FromValue(value, message.Response); 299return Response.FromValue((DiskEncryptionSetData)null, message.Response); 301throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 333using var document = JsonDocument.Parse(message.Response.ContentStream); 335return Response.FromValue(value, message.Response); 338return Response.FromValue((DiskEncryptionSetData)null, message.Response); 340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 392return message.Response; 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 426return message.Response; 428throw ClientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw ClientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 577using var document = JsonDocument.Parse(message.Response.ContentStream); 579return Response.FromValue(value, message.Response); 582throw ClientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 637return Response.FromValue(value, message.Response); 640throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 667switch (message.Response.Status) 672using var document = JsonDocument.Parse(message.Response.ContentStream); 674return Response.FromValue(value, message.Response); 677throw ClientDiagnostics.CreateRequestFailedException(message.Response); 718switch (message.Response.Status) 723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 725return Response.FromValue(value, message.Response); 728throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 755switch (message.Response.Status) 760using var document = JsonDocument.Parse(message.Response.ContentStream); 762return Response.FromValue(value, message.Response); 765throw ClientDiagnostics.CreateRequestFailedException(message.Response); 801switch (message.Response.Status) 806using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 808return Response.FromValue(value, message.Response); 811throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 833switch (message.Response.Status) 838using var document = JsonDocument.Parse(message.Response.ContentStream); 840return Response.FromValue(value, message.Response); 843throw ClientDiagnostics.CreateRequestFailedException(message.Response); 889switch (message.Response.Status) 894using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 896return Response.FromValue(value, message.Response); 899throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 931switch (message.Response.Status) 936using var document = JsonDocument.Parse(message.Response.ContentStream); 938return Response.FromValue(value, message.Response); 941throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskRestorePointRestOperations.cs (38)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113return Response.FromValue((DiskRestorePointData)null, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162return Response.FromValue((DiskRestorePointData)null, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 261switch (message.Response.Status) 266using var document = JsonDocument.Parse(message.Response.ContentStream); 268return Response.FromValue(value, message.Response); 271throw ClientDiagnostics.CreateRequestFailedException(message.Response); 342switch (message.Response.Status) 346return message.Response; 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 390switch (message.Response.Status) 394return message.Response; 396throw ClientDiagnostics.CreateRequestFailedException(message.Response); 458switch (message.Response.Status) 462return message.Response; 464throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 505return message.Response; 507throw ClientDiagnostics.CreateRequestFailedException(message.Response); 558switch (message.Response.Status) 563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 565return Response.FromValue(value, message.Response); 568throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 605switch (message.Response.Status) 610using var document = JsonDocument.Parse(message.Response.ContentStream); 612return Response.FromValue(value, message.Response); 615throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DisksRestOperations.cs (72)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 202return message.Response; 204throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 296return Response.FromValue(value, message.Response); 299return Response.FromValue((DiskData)null, message.Response); 301throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 333using var document = JsonDocument.Parse(message.Response.ContentStream); 335return Response.FromValue(value, message.Response); 338return Response.FromValue((DiskData)null, message.Response); 340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 386switch (message.Response.Status) 391return message.Response; 393throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 425return message.Response; 427throw ClientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 500switch (message.Response.Status) 505using var document = JsonDocument.Parse(message.Response.ContentStream); 507return Response.FromValue(value, message.Response); 510throw ClientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 571switch (message.Response.Status) 576using var document = JsonDocument.Parse(message.Response.ContentStream); 578return Response.FromValue(value, message.Response); 581throw ClientDiagnostics.CreateRequestFailedException(message.Response); 638switch (message.Response.Status) 642return message.Response; 644throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 676switch (message.Response.Status) 680return message.Response; 682throw ClientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 733return message.Response; 735throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 766return message.Response; 768throw ClientDiagnostics.CreateRequestFailedException(message.Response); 809switch (message.Response.Status) 814using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 816return Response.FromValue(value, message.Response); 819throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 846switch (message.Response.Status) 851using var document = JsonDocument.Parse(message.Response.ContentStream); 853return Response.FromValue(value, message.Response); 856throw ClientDiagnostics.CreateRequestFailedException(message.Response); 892switch (message.Response.Status) 897using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 899return Response.FromValue(value, message.Response); 902throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 924switch (message.Response.Status) 929using var document = JsonDocument.Parse(message.Response.ContentStream); 931return Response.FromValue(value, message.Response); 934throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleriesRestOperations.cs (60)
98switch (message.Response.Status) 103return message.Response; 105throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 142return message.Response; 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 203return message.Response; 205throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 301return Response.FromValue(value, message.Response); 304return Response.FromValue((GalleryData)null, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 339using var document = JsonDocument.Parse(message.Response.ContentStream); 341return Response.FromValue(value, message.Response); 344return Response.FromValue((GalleryData)null, message.Response); 346throw ClientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398return message.Response; 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 432return message.Response; 434throw ClientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 512using var document = JsonDocument.Parse(message.Response.ContentStream); 514return Response.FromValue(value, message.Response); 517throw ClientDiagnostics.CreateRequestFailedException(message.Response); 551switch (message.Response.Status) 556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 558return Response.FromValue(value, message.Response); 561throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw ClientDiagnostics.CreateRequestFailedException(message.Response); 629switch (message.Response.Status) 634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 636return Response.FromValue(value, message.Response); 639throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 666switch (message.Response.Status) 671using var document = JsonDocument.Parse(message.Response.ContentStream); 673return Response.FromValue(value, message.Response); 676throw ClientDiagnostics.CreateRequestFailedException(message.Response); 712switch (message.Response.Status) 717using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 719return Response.FromValue(value, message.Response); 722throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 744switch (message.Response.Status) 749using var document = JsonDocument.Parse(message.Response.ContentStream); 751return Response.FromValue(value, message.Response); 754throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryApplicationsRestOperations.cs (44)
105switch (message.Response.Status) 110return message.Response; 112throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 149switch (message.Response.Status) 154return message.Response; 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 222return message.Response; 224throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 261switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 327return Response.FromValue(value, message.Response); 330return Response.FromValue((GalleryApplicationData)null, message.Response); 332throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 364switch (message.Response.Status) 369using var document = JsonDocument.Parse(message.Response.ContentStream); 371return Response.FromValue(value, message.Response); 374return Response.FromValue((GalleryApplicationData)null, message.Response); 376throw ClientDiagnostics.CreateRequestFailedException(message.Response); 430switch (message.Response.Status) 435return message.Response; 437throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 469switch (message.Response.Status) 474return message.Response; 476throw ClientDiagnostics.CreateRequestFailedException(message.Response); 524switch (message.Response.Status) 529using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 531return Response.FromValue(value, message.Response); 534throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 561switch (message.Response.Status) 566using var document = JsonDocument.Parse(message.Response.ContentStream); 568return Response.FromValue(value, message.Response); 571throw ClientDiagnostics.CreateRequestFailedException(message.Response); 617switch (message.Response.Status) 622using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 624return Response.FromValue(value, message.Response); 627throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 659switch (message.Response.Status) 664using var document = JsonDocument.Parse(message.Response.ContentStream); 666return Response.FromValue(value, message.Response); 669throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryApplicationVersionsRestOperations.cs (44)
112switch (message.Response.Status) 117return message.Response; 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 166return message.Response; 168throw ClientDiagnostics.CreateRequestFailedException(message.Response); 238switch (message.Response.Status) 241return message.Response; 243throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 285switch (message.Response.Status) 288return message.Response; 290throw ClientDiagnostics.CreateRequestFailedException(message.Response); 356switch (message.Response.Status) 361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 363return Response.FromValue(value, message.Response); 366return Response.FromValue((GalleryApplicationVersionData)null, message.Response); 368throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 406switch (message.Response.Status) 411using var document = JsonDocument.Parse(message.Response.ContentStream); 413return Response.FromValue(value, message.Response); 416return Response.FromValue((GalleryApplicationVersionData)null, message.Response); 418throw ClientDiagnostics.CreateRequestFailedException(message.Response); 479switch (message.Response.Status) 484return message.Response; 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 523switch (message.Response.Status) 528return message.Response; 530throw ClientDiagnostics.CreateRequestFailedException(message.Response); 585switch (message.Response.Status) 590using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 592return Response.FromValue(value, message.Response); 595throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 627switch (message.Response.Status) 632using var document = JsonDocument.Parse(message.Response.ContentStream); 634return Response.FromValue(value, message.Response); 637throw ClientDiagnostics.CreateRequestFailedException(message.Response); 688switch (message.Response.Status) 693using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 695return Response.FromValue(value, message.Response); 698throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 735switch (message.Response.Status) 740using var document = JsonDocument.Parse(message.Response.ContentStream); 742return Response.FromValue(value, message.Response); 745throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryImagesRestOperations.cs (44)
105switch (message.Response.Status) 110return message.Response; 112throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 149switch (message.Response.Status) 154return message.Response; 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 222return message.Response; 224throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 261switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 327return Response.FromValue(value, message.Response); 330return Response.FromValue((GalleryImageData)null, message.Response); 332throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 364switch (message.Response.Status) 369using var document = JsonDocument.Parse(message.Response.ContentStream); 371return Response.FromValue(value, message.Response); 374return Response.FromValue((GalleryImageData)null, message.Response); 376throw ClientDiagnostics.CreateRequestFailedException(message.Response); 430switch (message.Response.Status) 435return message.Response; 437throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 469switch (message.Response.Status) 474return message.Response; 476throw ClientDiagnostics.CreateRequestFailedException(message.Response); 524switch (message.Response.Status) 529using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 531return Response.FromValue(value, message.Response); 534throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 561switch (message.Response.Status) 566using var document = JsonDocument.Parse(message.Response.ContentStream); 568return Response.FromValue(value, message.Response); 571throw ClientDiagnostics.CreateRequestFailedException(message.Response); 617switch (message.Response.Status) 622using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 624return Response.FromValue(value, message.Response); 627throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 659switch (message.Response.Status) 664using var document = JsonDocument.Parse(message.Response.ContentStream); 666return Response.FromValue(value, message.Response); 669throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryImageVersionsRestOperations.cs (44)
112switch (message.Response.Status) 117return message.Response; 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 166return message.Response; 168throw ClientDiagnostics.CreateRequestFailedException(message.Response); 238switch (message.Response.Status) 241return message.Response; 243throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 285switch (message.Response.Status) 288return message.Response; 290throw ClientDiagnostics.CreateRequestFailedException(message.Response); 356switch (message.Response.Status) 361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 363return Response.FromValue(value, message.Response); 366return Response.FromValue((GalleryImageVersionData)null, message.Response); 368throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 406switch (message.Response.Status) 411using var document = JsonDocument.Parse(message.Response.ContentStream); 413return Response.FromValue(value, message.Response); 416return Response.FromValue((GalleryImageVersionData)null, message.Response); 418throw ClientDiagnostics.CreateRequestFailedException(message.Response); 479switch (message.Response.Status) 484return message.Response; 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 523switch (message.Response.Status) 528return message.Response; 530throw ClientDiagnostics.CreateRequestFailedException(message.Response); 585switch (message.Response.Status) 590using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 592return Response.FromValue(value, message.Response); 595throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 627switch (message.Response.Status) 632using var document = JsonDocument.Parse(message.Response.ContentStream); 634return Response.FromValue(value, message.Response); 637throw ClientDiagnostics.CreateRequestFailedException(message.Response); 688switch (message.Response.Status) 693using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 695return Response.FromValue(value, message.Response); 698throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 735switch (message.Response.Status) 740using var document = JsonDocument.Parse(message.Response.ContentStream); 742return Response.FromValue(value, message.Response); 745throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GallerySharingProfileRestOperations.cs (6)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ImagesRestOperations.cs (60)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 202return message.Response; 204throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 293return message.Response; 295throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 327return message.Response; 329throw ClientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 388return Response.FromValue(value, message.Response); 391return Response.FromValue((ImageData)null, message.Response); 393throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 426using var document = JsonDocument.Parse(message.Response.ContentStream); 428return Response.FromValue(value, message.Response); 431return Response.FromValue((ImageData)null, message.Response); 433throw ClientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 479using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 481return Response.FromValue(value, message.Response); 484throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 511using var document = JsonDocument.Parse(message.Response.ContentStream); 513return Response.FromValue(value, message.Response); 516throw ClientDiagnostics.CreateRequestFailedException(message.Response); 550switch (message.Response.Status) 555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 557return Response.FromValue(value, message.Response); 560throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 577switch (message.Response.Status) 582using var document = JsonDocument.Parse(message.Response.ContentStream); 584return Response.FromValue(value, message.Response); 587throw ClientDiagnostics.CreateRequestFailedException(message.Response); 628switch (message.Response.Status) 633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 635return Response.FromValue(value, message.Response); 638throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 665switch (message.Response.Status) 670using var document = JsonDocument.Parse(message.Response.ContentStream); 672return Response.FromValue(value, message.Response); 675throw ClientDiagnostics.CreateRequestFailedException(message.Response); 711switch (message.Response.Status) 716using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 718return Response.FromValue(value, message.Response); 721throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 743switch (message.Response.Status) 748using var document = JsonDocument.Parse(message.Response.ContentStream); 750return Response.FromValue(value, message.Response); 753throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LogAnalyticsRestOperations.cs (12)
91switch (message.Response.Status) 95return message.Response; 97throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 124switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 184return message.Response; 186throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 213switch (message.Response.Status) 217return message.Response; 219throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ProximityPlacementGroupsRestOperations.cs (64)
98switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 141switch (message.Response.Status) 147using var document = JsonDocument.Parse(message.Response.ContentStream); 149return Response.FromValue(value, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return Response.FromValue(value, message.Response); 260throw ClientDiagnostics.CreateRequestFailedException(message.Response); 306switch (message.Response.Status) 309return message.Response; 311throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 341return message.Response; 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 395switch (message.Response.Status) 400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 402return Response.FromValue(value, message.Response); 405return Response.FromValue((ProximityPlacementGroupData)null, message.Response); 407throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 435switch (message.Response.Status) 440using var document = JsonDocument.Parse(message.Response.ContentStream); 442return Response.FromValue(value, message.Response); 445return Response.FromValue((ProximityPlacementGroupData)null, message.Response); 447throw ClientDiagnostics.CreateRequestFailedException(message.Response); 481switch (message.Response.Status) 486using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 488return Response.FromValue(value, message.Response); 491throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 513using var document = JsonDocument.Parse(message.Response.ContentStream); 515return Response.FromValue(value, message.Response); 518throw ClientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 591switch (message.Response.Status) 596using var document = JsonDocument.Parse(message.Response.ContentStream); 598return Response.FromValue(value, message.Response); 601throw ClientDiagnostics.CreateRequestFailedException(message.Response); 637switch (message.Response.Status) 642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 644return Response.FromValue(value, message.Response); 647throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 669switch (message.Response.Status) 674using var document = JsonDocument.Parse(message.Response.ContentStream); 676return Response.FromValue(value, message.Response); 679throw ClientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 727return Response.FromValue(value, message.Response); 730throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 757switch (message.Response.Status) 762using var document = JsonDocument.Parse(message.Response.ContentStream); 764return Response.FromValue(value, message.Response); 767throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ResourceSkusRestOperations.cs (16)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 163switch (message.Response.Status) 168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 170return Response.FromValue(value, message.Response); 173throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorePointCollectionsRestOperations.cs (64)
98switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 141switch (message.Response.Status) 147using var document = JsonDocument.Parse(message.Response.ContentStream); 149return Response.FromValue(value, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return Response.FromValue(value, message.Response); 260throw ClientDiagnostics.CreateRequestFailedException(message.Response); 307switch (message.Response.Status) 312return message.Response; 314throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 341switch (message.Response.Status) 346return message.Response; 348throw ClientDiagnostics.CreateRequestFailedException(message.Response); 400switch (message.Response.Status) 405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 407return Response.FromValue(value, message.Response); 410return Response.FromValue((RestorePointGroupData)null, message.Response); 412throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 440switch (message.Response.Status) 445using var document = JsonDocument.Parse(message.Response.ContentStream); 447return Response.FromValue(value, message.Response); 450return Response.FromValue((RestorePointGroupData)null, message.Response); 452throw ClientDiagnostics.CreateRequestFailedException(message.Response); 493switch (message.Response.Status) 498using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 500return Response.FromValue(value, message.Response); 503throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 525switch (message.Response.Status) 530using var document = JsonDocument.Parse(message.Response.ContentStream); 532return Response.FromValue(value, message.Response); 535throw ClientDiagnostics.CreateRequestFailedException(message.Response); 569switch (message.Response.Status) 574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 576return Response.FromValue(value, message.Response); 579throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 596switch (message.Response.Status) 601using var document = JsonDocument.Parse(message.Response.ContentStream); 603return Response.FromValue(value, message.Response); 606throw ClientDiagnostics.CreateRequestFailedException(message.Response); 647switch (message.Response.Status) 652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 654return Response.FromValue(value, message.Response); 657throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 684switch (message.Response.Status) 689using var document = JsonDocument.Parse(message.Response.ContentStream); 691return Response.FromValue(value, message.Response); 694throw ClientDiagnostics.CreateRequestFailedException(message.Response); 730switch (message.Response.Status) 735using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 737return Response.FromValue(value, message.Response); 740throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 767using var document = JsonDocument.Parse(message.Response.ContentStream); 769return Response.FromValue(value, message.Response); 772throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorePointsRestOperations.cs (22)
104switch (message.Response.Status) 107return message.Response; 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 149return message.Response; 151throw ClientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210return message.Response; 212throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249return message.Response; 251throw ClientDiagnostics.CreateRequestFailedException(message.Response); 305switch (message.Response.Status) 310using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 312return Response.FromValue(value, message.Response); 315return Response.FromValue((RestorePointData)null, message.Response); 317throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 349switch (message.Response.Status) 354using var document = JsonDocument.Parse(message.Response.ContentStream); 356return Response.FromValue(value, message.Response); 359return Response.FromValue((RestorePointData)null, message.Response); 361throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleriesRestOperations.cs (26)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw ClientDiagnostics.CreateRequestFailedException(message.Response); 178switch (message.Response.Status) 183using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 185return Response.FromValue(value, message.Response); 188return Response.FromValue((SharedGalleryData)null, message.Response); 190throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 217switch (message.Response.Status) 222using var document = JsonDocument.Parse(message.Response.ContentStream); 224return Response.FromValue(value, message.Response); 227return Response.FromValue((SharedGalleryData)null, message.Response); 229throw ClientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 278return Response.FromValue(value, message.Response); 281throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 309switch (message.Response.Status) 314using var document = JsonDocument.Parse(message.Response.ContentStream); 316return Response.FromValue(value, message.Response); 319throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleryImagesRestOperations.cs (26)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw ClientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207return Response.FromValue((SharedGalleryImageData)null, message.Response); 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251return Response.FromValue((SharedGalleryImageData)null, message.Response); 253throw ClientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 307return Response.FromValue(value, message.Response); 310throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343switch (message.Response.Status) 348using var document = JsonDocument.Parse(message.Response.ContentStream); 350return Response.FromValue(value, message.Response); 353throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleryImageVersionsRestOperations.cs (26)
102switch (message.Response.Status) 107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 109return Response.FromValue(value, message.Response); 112throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw ClientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((SharedGalleryImageVersionData)null, message.Response); 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 270using var document = JsonDocument.Parse(message.Response.ContentStream); 272return Response.FromValue(value, message.Response); 275return Response.FromValue((SharedGalleryImageVersionData)null, message.Response); 277throw ClientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 336return Response.FromValue(value, message.Response); 339throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 377switch (message.Response.Status) 382using var document = JsonDocument.Parse(message.Response.ContentStream); 384return Response.FromValue(value, message.Response); 387throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SnapshotsRestOperations.cs (72)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 202return message.Response; 204throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 296return Response.FromValue(value, message.Response); 299return Response.FromValue((SnapshotData)null, message.Response); 301throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 333using var document = JsonDocument.Parse(message.Response.ContentStream); 335return Response.FromValue(value, message.Response); 338return Response.FromValue((SnapshotData)null, message.Response); 340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 386switch (message.Response.Status) 391return message.Response; 393throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 420switch (message.Response.Status) 425return message.Response; 427throw ClientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 500switch (message.Response.Status) 505using var document = JsonDocument.Parse(message.Response.ContentStream); 507return Response.FromValue(value, message.Response); 510throw ClientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 571switch (message.Response.Status) 576using var document = JsonDocument.Parse(message.Response.ContentStream); 578return Response.FromValue(value, message.Response); 581throw ClientDiagnostics.CreateRequestFailedException(message.Response); 638switch (message.Response.Status) 642return message.Response; 644throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 676switch (message.Response.Status) 680return message.Response; 682throw ClientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 733return message.Response; 735throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 766return message.Response; 768throw ClientDiagnostics.CreateRequestFailedException(message.Response); 809switch (message.Response.Status) 814using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 816return Response.FromValue(value, message.Response); 819throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 846switch (message.Response.Status) 851using var document = JsonDocument.Parse(message.Response.ContentStream); 853return Response.FromValue(value, message.Response); 856throw ClientDiagnostics.CreateRequestFailedException(message.Response); 892switch (message.Response.Status) 897using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 899return Response.FromValue(value, message.Response); 902throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 924switch (message.Response.Status) 929using var document = JsonDocument.Parse(message.Response.ContentStream); 931return Response.FromValue(value, message.Response); 934throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SshPublicKeysRestOperations.cs (72)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response); 252switch (message.Response.Status) 258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 260return Response.FromValue(value, message.Response); 263throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 295switch (message.Response.Status) 301using var document = JsonDocument.Parse(message.Response.ContentStream); 303return Response.FromValue(value, message.Response); 306throw ClientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 367using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 369return Response.FromValue(value, message.Response); 372throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 404switch (message.Response.Status) 409using var document = JsonDocument.Parse(message.Response.ContentStream); 411return Response.FromValue(value, message.Response); 414throw ClientDiagnostics.CreateRequestFailedException(message.Response); 460switch (message.Response.Status) 464return message.Response; 466throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 493switch (message.Response.Status) 497return message.Response; 499throw ClientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556return Response.FromValue((SshPublicKeyData)null, message.Response); 558throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595return Response.FromValue((SshPublicKeyData)null, message.Response); 597throw ClientDiagnostics.CreateRequestFailedException(message.Response); 645switch (message.Response.Status) 650using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 652return Response.FromValue(value, message.Response); 655throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 682switch (message.Response.Status) 687using var document = JsonDocument.Parse(message.Response.ContentStream); 689return Response.FromValue(value, message.Response); 692throw ClientDiagnostics.CreateRequestFailedException(message.Response); 728switch (message.Response.Status) 733using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 735return Response.FromValue(value, message.Response); 738throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 765using var document = JsonDocument.Parse(message.Response.ContentStream); 767return Response.FromValue(value, message.Response); 770throw ClientDiagnostics.CreateRequestFailedException(message.Response); 811switch (message.Response.Status) 816using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 818return Response.FromValue(value, message.Response); 821throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 848switch (message.Response.Status) 853using var document = JsonDocument.Parse(message.Response.ContentStream); 855return Response.FromValue(value, message.Response); 858throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\UsageRestOperations.cs (16)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 203switch (message.Response.Status) 208using var document = JsonDocument.Parse(message.Response.ContentStream); 210return Response.FromValue(value, message.Response); 213throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineExtensionImagesRestOperations.cs (26)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113return Response.FromValue((VirtualMachineExtensionImageData)null, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162return Response.FromValue((VirtualMachineExtensionImageData)null, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 254switch (message.Response.Status) 259using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269throw ClientDiagnostics.CreateRequestFailedException(message.Response); 339switch (message.Response.Status) 344using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 351return Response.FromValue(value, message.Response); 354throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 389switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 401return Response.FromValue(value, message.Response); 404throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineExtensionsRestOperations.cs (36)
105switch (message.Response.Status) 109return message.Response; 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 220return message.Response; 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 317switch (message.Response.Status) 322return message.Response; 324throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 361return message.Response; 363throw ClientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432return Response.FromValue((VirtualMachineExtensionData)null, message.Response); 434throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 467switch (message.Response.Status) 472using var document = JsonDocument.Parse(message.Response.ContentStream); 474return Response.FromValue(value, message.Response); 477return Response.FromValue((VirtualMachineExtensionData)null, message.Response); 479throw ClientDiagnostics.CreateRequestFailedException(message.Response); 532switch (message.Response.Status) 537using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 539return Response.FromValue(value, message.Response); 542throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 570switch (message.Response.Status) 575using var document = JsonDocument.Parse(message.Response.ContentStream); 577return Response.FromValue(value, message.Response); 580throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineImagesEdgeZoneRestOperations.cs (40)
118switch (message.Response.Status) 123using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 125return Response.FromValue(value, message.Response); 128throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw ClientDiagnostics.CreateRequestFailedException(message.Response); 269switch (message.Response.Status) 274using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 281return Response.FromValue(value, message.Response); 284throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334using var document = JsonDocument.Parse(message.Response.ContentStream); 341return Response.FromValue(value, message.Response); 344throw ClientDiagnostics.CreateRequestFailedException(message.Response); 399switch (message.Response.Status) 404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 411return Response.FromValue(value, message.Response); 414throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 446switch (message.Response.Status) 451using var document = JsonDocument.Parse(message.Response.ContentStream); 458return Response.FromValue(value, message.Response); 461throw ClientDiagnostics.CreateRequestFailedException(message.Response); 509switch (message.Response.Status) 514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 521return Response.FromValue(value, message.Response); 524throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 551switch (message.Response.Status) 556using var document = JsonDocument.Parse(message.Response.ContentStream); 563return Response.FromValue(value, message.Response); 566throw ClientDiagnostics.CreateRequestFailedException(message.Response); 628switch (message.Response.Status) 633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 640return Response.FromValue(value, message.Response); 643throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 680switch (message.Response.Status) 685using var document = JsonDocument.Parse(message.Response.ContentStream); 692return Response.FromValue(value, message.Response); 695throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineImagesRestOperations.cs (40)
111switch (message.Response.Status) 116using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 118return Response.FromValue(value, message.Response); 121throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 163switch (message.Response.Status) 168using var document = JsonDocument.Parse(message.Response.ContentStream); 170return Response.FromValue(value, message.Response); 173throw ClientDiagnostics.CreateRequestFailedException(message.Response); 250switch (message.Response.Status) 255using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 262return Response.FromValue(value, message.Response); 265throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310using var document = JsonDocument.Parse(message.Response.ContentStream); 317return Response.FromValue(value, message.Response); 320throw ClientDiagnostics.CreateRequestFailedException(message.Response); 368switch (message.Response.Status) 373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 380return Response.FromValue(value, message.Response); 383throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 410switch (message.Response.Status) 415using var document = JsonDocument.Parse(message.Response.ContentStream); 422return Response.FromValue(value, message.Response); 425throw ClientDiagnostics.CreateRequestFailedException(message.Response); 466switch (message.Response.Status) 471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 478return Response.FromValue(value, message.Response); 481throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 515return Response.FromValue(value, message.Response); 518throw ClientDiagnostics.CreateRequestFailedException(message.Response); 573switch (message.Response.Status) 578using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 585return Response.FromValue(value, message.Response); 588throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 620switch (message.Response.Status) 625using var document = JsonDocument.Parse(message.Response.ContentStream); 632return Response.FromValue(value, message.Response); 635throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineRunCommandsRestOperations.cs (68)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 172switch (message.Response.Status) 177using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 179return Response.FromValue(value, message.Response); 182throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 209switch (message.Response.Status) 214using var document = JsonDocument.Parse(message.Response.ContentStream); 216return Response.FromValue(value, message.Response); 219throw ClientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 325switch (message.Response.Status) 329return message.Response; 331throw ClientDiagnostics.CreateRequestFailedException(message.Response); 394switch (message.Response.Status) 397return message.Response; 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 436switch (message.Response.Status) 439return message.Response; 441throw ClientDiagnostics.CreateRequestFailedException(message.Response); 495switch (message.Response.Status) 500return message.Response; 502throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 534switch (message.Response.Status) 539return message.Response; 541throw ClientDiagnostics.CreateRequestFailedException(message.Response); 600switch (message.Response.Status) 605using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 607return Response.FromValue(value, message.Response); 610return Response.FromValue((VirtualMachineRunCommandData)null, message.Response); 612throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 645switch (message.Response.Status) 650using var document = JsonDocument.Parse(message.Response.ContentStream); 652return Response.FromValue(value, message.Response); 655return Response.FromValue((VirtualMachineRunCommandData)null, message.Response); 657throw ClientDiagnostics.CreateRequestFailedException(message.Response); 710switch (message.Response.Status) 715using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 717return Response.FromValue(value, message.Response); 720throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 748switch (message.Response.Status) 753using var document = JsonDocument.Parse(message.Response.ContentStream); 755return Response.FromValue(value, message.Response); 758throw ClientDiagnostics.CreateRequestFailedException(message.Response); 799switch (message.Response.Status) 804using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 806return Response.FromValue(value, message.Response); 809throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 836switch (message.Response.Status) 841using var document = JsonDocument.Parse(message.Response.ContentStream); 843return Response.FromValue(value, message.Response); 846throw ClientDiagnostics.CreateRequestFailedException(message.Response); 893switch (message.Response.Status) 898using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 900return Response.FromValue(value, message.Response); 903throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 936switch (message.Response.Status) 941using var document = JsonDocument.Parse(message.Response.ContentStream); 943return Response.FromValue(value, message.Response); 946throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetExtensionsRestOperations.cs (44)
105switch (message.Response.Status) 109return message.Response; 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 221return message.Response; 223throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363return message.Response; 365throw ClientDiagnostics.CreateRequestFailedException(message.Response); 424switch (message.Response.Status) 429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 431return Response.FromValue(value, message.Response); 434return Response.FromValue((VirtualMachineScaleSetExtensionData)null, message.Response); 436throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 469switch (message.Response.Status) 474using var document = JsonDocument.Parse(message.Response.ContentStream); 476return Response.FromValue(value, message.Response); 479return Response.FromValue((VirtualMachineScaleSetExtensionData)null, message.Response); 481throw ClientDiagnostics.CreateRequestFailedException(message.Response); 529switch (message.Response.Status) 534using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 536return Response.FromValue(value, message.Response); 539throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw ClientDiagnostics.CreateRequestFailedException(message.Response); 622switch (message.Response.Status) 627using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 629return Response.FromValue(value, message.Response); 632throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetRollingUpgradesRestOperations.cs (28)
88switch (message.Response.Status) 92return message.Response; 94throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 125return message.Response; 127throw ClientDiagnostics.CreateRequestFailedException(message.Response); 174switch (message.Response.Status) 178return message.Response; 180throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 207switch (message.Response.Status) 211return message.Response; 213throw ClientDiagnostics.CreateRequestFailedException(message.Response); 260switch (message.Response.Status) 264return message.Response; 266throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 297return message.Response; 299throw ClientDiagnostics.CreateRequestFailedException(message.Response); 347switch (message.Response.Status) 352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 354return Response.FromValue(value, message.Response); 357return Response.FromValue((VirtualMachineScaleSetRollingUpgradeData)null, message.Response); 359throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 391using var document = JsonDocument.Parse(message.Response.ContentStream); 393return Response.FromValue(value, message.Response); 396return Response.FromValue((VirtualMachineScaleSetRollingUpgradeData)null, message.Response); 398throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetsRestOperations.cs (196)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 185return message.Response; 187throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 219switch (message.Response.Status) 223return message.Response; 225throw ClientDiagnostics.CreateRequestFailedException(message.Response); 281switch (message.Response.Status) 284return message.Response; 286throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 318switch (message.Response.Status) 321return message.Response; 323throw ClientDiagnostics.CreateRequestFailedException(message.Response); 374switch (message.Response.Status) 379return message.Response; 381throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 409switch (message.Response.Status) 414return message.Response; 416throw ClientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478return Response.FromValue((VirtualMachineScaleSetData)null, message.Response); 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 513using var document = JsonDocument.Parse(message.Response.ContentStream); 515return Response.FromValue(value, message.Response); 518return Response.FromValue((VirtualMachineScaleSetData)null, message.Response); 520throw ClientDiagnostics.CreateRequestFailedException(message.Response); 575switch (message.Response.Status) 579return message.Response; 581throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 609switch (message.Response.Status) 613return message.Response; 615throw ClientDiagnostics.CreateRequestFailedException(message.Response); 676switch (message.Response.Status) 680return message.Response; 682throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 715switch (message.Response.Status) 719return message.Response; 721throw ClientDiagnostics.CreateRequestFailedException(message.Response); 769switch (message.Response.Status) 774using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 776return Response.FromValue(value, message.Response); 779throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 806switch (message.Response.Status) 811using var document = JsonDocument.Parse(message.Response.ContentStream); 813return Response.FromValue(value, message.Response); 816throw ClientDiagnostics.CreateRequestFailedException(message.Response); 857switch (message.Response.Status) 862using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 864return Response.FromValue(value, message.Response); 867throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 889switch (message.Response.Status) 894using var document = JsonDocument.Parse(message.Response.ContentStream); 896return Response.FromValue(value, message.Response); 899throw ClientDiagnostics.CreateRequestFailedException(message.Response); 933switch (message.Response.Status) 938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 940return Response.FromValue(value, message.Response); 943throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 960switch (message.Response.Status) 965using var document = JsonDocument.Parse(message.Response.ContentStream); 967return Response.FromValue(value, message.Response); 970throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1018switch (message.Response.Status) 1023using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1025return Response.FromValue(value, message.Response); 1028throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1055switch (message.Response.Status) 1060using var document = JsonDocument.Parse(message.Response.ContentStream); 1062return Response.FromValue(value, message.Response); 1065throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1113switch (message.Response.Status) 1118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1120return Response.FromValue(value, message.Response); 1123throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1150switch (message.Response.Status) 1155using var document = JsonDocument.Parse(message.Response.ContentStream); 1157return Response.FromValue(value, message.Response); 1160throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1220switch (message.Response.Status) 1224return message.Response; 1226throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1255switch (message.Response.Status) 1259return message.Response; 1261throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1316switch (message.Response.Status) 1320return message.Response; 1322throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1350switch (message.Response.Status) 1354return message.Response; 1356throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1411switch (message.Response.Status) 1415return message.Response; 1417throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1445switch (message.Response.Status) 1449return message.Response; 1451throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1506switch (message.Response.Status) 1510return message.Response; 1512throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1540switch (message.Response.Status) 1544return message.Response; 1546throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1601switch (message.Response.Status) 1605return message.Response; 1607throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1635switch (message.Response.Status) 1639return message.Response; 1641throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1697switch (message.Response.Status) 1701return message.Response; 1703throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1735switch (message.Response.Status) 1739return message.Response; 1741throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1796switch (message.Response.Status) 1800return message.Response; 1802throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1830switch (message.Response.Status) 1834return message.Response; 1836throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1891switch (message.Response.Status) 1895return message.Response; 1897throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1925switch (message.Response.Status) 1929return message.Response; 1931throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1981switch (message.Response.Status) 1986using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1988return Response.FromValue(value, message.Response); 1991throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2019switch (message.Response.Status) 2024using var document = JsonDocument.Parse(message.Response.ContentStream); 2026return Response.FromValue(value, message.Response); 2029throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2085switch (message.Response.Status) 2088return message.Response; 2090throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2122switch (message.Response.Status) 2125return message.Response; 2127throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2183switch (message.Response.Status) 2187return message.Response; 2189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2221switch (message.Response.Status) 2225return message.Response; 2227throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2268switch (message.Response.Status) 2273using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2275return Response.FromValue(value, message.Response); 2278throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2305switch (message.Response.Status) 2310using var document = JsonDocument.Parse(message.Response.ContentStream); 2312return Response.FromValue(value, message.Response); 2315throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2356switch (message.Response.Status) 2361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2363return Response.FromValue(value, message.Response); 2366throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2393switch (message.Response.Status) 2398using var document = JsonDocument.Parse(message.Response.ContentStream); 2400return Response.FromValue(value, message.Response); 2403throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2439switch (message.Response.Status) 2444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2446return Response.FromValue(value, message.Response); 2449throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2471switch (message.Response.Status) 2476using var document = JsonDocument.Parse(message.Response.ContentStream); 2478return Response.FromValue(value, message.Response); 2481throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2527switch (message.Response.Status) 2532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2534return Response.FromValue(value, message.Response); 2537throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2569switch (message.Response.Status) 2574using var document = JsonDocument.Parse(message.Response.ContentStream); 2576return Response.FromValue(value, message.Response); 2579throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2625switch (message.Response.Status) 2630using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2632return Response.FromValue(value, message.Response); 2635throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2667switch (message.Response.Status) 2672using var document = JsonDocument.Parse(message.Response.ContentStream); 2674return Response.FromValue(value, message.Response); 2677throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMExtensionsRestOperations.cs (36)
112switch (message.Response.Status) 116return message.Response; 118throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 164return message.Response; 166throw ClientDiagnostics.CreateRequestFailedException(message.Response); 236switch (message.Response.Status) 239return message.Response; 241throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 283switch (message.Response.Status) 286return message.Response; 288throw ClientDiagnostics.CreateRequestFailedException(message.Response); 349switch (message.Response.Status) 354return message.Response; 356throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 393switch (message.Response.Status) 398return message.Response; 400throw ClientDiagnostics.CreateRequestFailedException(message.Response); 466switch (message.Response.Status) 471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 473return Response.FromValue(value, message.Response); 476return Response.FromValue((VirtualMachineScaleSetVmExtensionData)null, message.Response); 478throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 516switch (message.Response.Status) 521using var document = JsonDocument.Parse(message.Response.ContentStream); 523return Response.FromValue(value, message.Response); 526return Response.FromValue((VirtualMachineScaleSetVmExtensionData)null, message.Response); 528throw ClientDiagnostics.CreateRequestFailedException(message.Response); 588switch (message.Response.Status) 593using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 595return Response.FromValue(value, message.Response); 598throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 631switch (message.Response.Status) 636using var document = JsonDocument.Parse(message.Response.ContentStream); 638return Response.FromValue(value, message.Response); 641throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMRunCommandsRestOperations.cs (44)
112switch (message.Response.Status) 116return message.Response; 118throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 164return message.Response; 166throw ClientDiagnostics.CreateRequestFailedException(message.Response); 236switch (message.Response.Status) 239return message.Response; 241throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 283switch (message.Response.Status) 286return message.Response; 288throw ClientDiagnostics.CreateRequestFailedException(message.Response); 349switch (message.Response.Status) 354return message.Response; 356throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 393switch (message.Response.Status) 398return message.Response; 400throw ClientDiagnostics.CreateRequestFailedException(message.Response); 466switch (message.Response.Status) 471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 473return Response.FromValue(value, message.Response); 476return Response.FromValue((VirtualMachineRunCommandData)null, message.Response); 478throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 516switch (message.Response.Status) 521using var document = JsonDocument.Parse(message.Response.ContentStream); 523return Response.FromValue(value, message.Response); 526return Response.FromValue((VirtualMachineRunCommandData)null, message.Response); 528throw ClientDiagnostics.CreateRequestFailedException(message.Response); 588switch (message.Response.Status) 593using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 595return Response.FromValue(value, message.Response); 598throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 631switch (message.Response.Status) 636using var document = JsonDocument.Parse(message.Response.ContentStream); 638return Response.FromValue(value, message.Response); 641throw ClientDiagnostics.CreateRequestFailedException(message.Response); 693switch (message.Response.Status) 698using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 700return Response.FromValue(value, message.Response); 703throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 741switch (message.Response.Status) 746using var document = JsonDocument.Parse(message.Response.ContentStream); 748return Response.FromValue(value, message.Response); 751throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMsRestOperations.cs (114)
104switch (message.Response.Status) 108return message.Response; 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 143switch (message.Response.Status) 147return message.Response; 149throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 207return message.Response; 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 245return message.Response; 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 305return message.Response; 307throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 339switch (message.Response.Status) 343return message.Response; 345throw ClientDiagnostics.CreateRequestFailedException(message.Response); 408switch (message.Response.Status) 412return message.Response; 414throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 451switch (message.Response.Status) 455return message.Response; 457throw ClientDiagnostics.CreateRequestFailedException(message.Response); 515switch (message.Response.Status) 520return message.Response; 522throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560return message.Response; 562throw ClientDiagnostics.CreateRequestFailedException(message.Response); 621switch (message.Response.Status) 626using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 628return Response.FromValue(value, message.Response); 631return Response.FromValue((VirtualMachineScaleSetVmData)null, message.Response); 633throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 666switch (message.Response.Status) 671using var document = JsonDocument.Parse(message.Response.ContentStream); 673return Response.FromValue(value, message.Response); 676return Response.FromValue((VirtualMachineScaleSetVmData)null, message.Response); 678throw ClientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 740return Response.FromValue(value, message.Response); 743throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 775switch (message.Response.Status) 780using var document = JsonDocument.Parse(message.Response.ContentStream); 782return Response.FromValue(value, message.Response); 785throw ClientDiagnostics.CreateRequestFailedException(message.Response); 848switch (message.Response.Status) 853using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 855return Response.FromValue(value, message.Response); 858throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 888switch (message.Response.Status) 893using var document = JsonDocument.Parse(message.Response.ContentStream); 895return Response.FromValue(value, message.Response); 898throw ClientDiagnostics.CreateRequestFailedException(message.Response); 957switch (message.Response.Status) 961return message.Response; 963throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 996switch (message.Response.Status) 1000return message.Response; 1002throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1056switch (message.Response.Status) 1060return message.Response; 1062throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1094switch (message.Response.Status) 1098return message.Response; 1100throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1154switch (message.Response.Status) 1158return message.Response; 1160throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1192switch (message.Response.Status) 1196return message.Response; 1198throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1252switch (message.Response.Status) 1256return message.Response; 1258throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1290switch (message.Response.Status) 1294return message.Response; 1296throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1356switch (message.Response.Status) 1361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1363return Response.FromValue(value, message.Response); 1366throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1399switch (message.Response.Status) 1404using var document = JsonDocument.Parse(message.Response.ContentStream); 1406return Response.FromValue(value, message.Response); 1409throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1463switch (message.Response.Status) 1467return message.Response; 1469throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1501switch (message.Response.Status) 1505return message.Response; 1507throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1561switch (message.Response.Status) 1564return message.Response; 1566throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1598switch (message.Response.Status) 1601return message.Response; 1603throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1667switch (message.Response.Status) 1671return message.Response; 1673throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1710switch (message.Response.Status) 1714return message.Response; 1716throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1765switch (message.Response.Status) 1770using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1772return Response.FromValue(value, message.Response); 1775throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1810switch (message.Response.Status) 1815using var document = JsonDocument.Parse(message.Response.ContentStream); 1817return Response.FromValue(value, message.Response); 1820throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineSizesRestOperations.cs (8)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachinesRestOperations.cs (190)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 186return message.Response; 188throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 224return message.Response; 226throw ClientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw ClientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 385return message.Response; 387throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 422return message.Response; 424throw ClientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480return message.Response; 482throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 510switch (message.Response.Status) 515return message.Response; 517throw ClientDiagnostics.CreateRequestFailedException(message.Response); 569switch (message.Response.Status) 574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 576return Response.FromValue(value, message.Response); 579return Response.FromValue((VirtualMachineData)null, message.Response); 581throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 609switch (message.Response.Status) 614using var document = JsonDocument.Parse(message.Response.ContentStream); 616return Response.FromValue(value, message.Response); 619return Response.FromValue((VirtualMachineData)null, message.Response); 621throw ClientDiagnostics.CreateRequestFailedException(message.Response); 669switch (message.Response.Status) 674using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 676return Response.FromValue(value, message.Response); 679throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 706switch (message.Response.Status) 711using var document = JsonDocument.Parse(message.Response.ContentStream); 713return Response.FromValue(value, message.Response); 716throw ClientDiagnostics.CreateRequestFailedException(message.Response); 763switch (message.Response.Status) 767return message.Response; 769throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 796switch (message.Response.Status) 800return message.Response; 802throw ClientDiagnostics.CreateRequestFailedException(message.Response); 854switch (message.Response.Status) 858return message.Response; 860throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 888switch (message.Response.Status) 892return message.Response; 894throw ClientDiagnostics.CreateRequestFailedException(message.Response); 941switch (message.Response.Status) 944return message.Response; 946throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 973switch (message.Response.Status) 976return message.Response; 978throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1019switch (message.Response.Status) 1024using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1026return Response.FromValue(value, message.Response); 1029throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051switch (message.Response.Status) 1056using var document = JsonDocument.Parse(message.Response.ContentStream); 1058return Response.FromValue(value, message.Response); 1061throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1100switch (message.Response.Status) 1105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1107return Response.FromValue(value, message.Response); 1110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1128switch (message.Response.Status) 1133using var document = JsonDocument.Parse(message.Response.ContentStream); 1135return Response.FromValue(value, message.Response); 1138throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1186switch (message.Response.Status) 1191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1193return Response.FromValue(value, message.Response); 1196throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1223switch (message.Response.Status) 1228using var document = JsonDocument.Parse(message.Response.ContentStream); 1230return Response.FromValue(value, message.Response); 1233throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1285switch (message.Response.Status) 1289return message.Response; 1291throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1319switch (message.Response.Status) 1323return message.Response; 1325throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1373switch (message.Response.Status) 1377return message.Response; 1379throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1406switch (message.Response.Status) 1410return message.Response; 1412throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1459switch (message.Response.Status) 1463return message.Response; 1465throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1492switch (message.Response.Status) 1496return message.Response; 1498throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1545switch (message.Response.Status) 1549return message.Response; 1551throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1578switch (message.Response.Status) 1582return message.Response; 1584throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1631switch (message.Response.Status) 1635return message.Response; 1637throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1664switch (message.Response.Status) 1668return message.Response; 1670throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1725switch (message.Response.Status) 1729return message.Response; 1731throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1759switch (message.Response.Status) 1763return message.Response; 1765throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1818switch (message.Response.Status) 1823using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1825return Response.FromValue(value, message.Response); 1828throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1856switch (message.Response.Status) 1861using var document = JsonDocument.Parse(message.Response.ContentStream); 1863return Response.FromValue(value, message.Response); 1866throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1913switch (message.Response.Status) 1917return message.Response; 1919throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1946switch (message.Response.Status) 1950return message.Response; 1952throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1999switch (message.Response.Status) 2002return message.Response; 2004throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2031switch (message.Response.Status) 2034return message.Response; 2036throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2084switch (message.Response.Status) 2088return message.Response; 2090throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2117switch (message.Response.Status) 2121return message.Response; 2123throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2180switch (message.Response.Status) 2184return message.Response; 2186throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2218switch (message.Response.Status) 2222return message.Response; 2224throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2281switch (message.Response.Status) 2285return message.Response; 2287throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2319switch (message.Response.Status) 2323return message.Response; 2325throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2366switch (message.Response.Status) 2371using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2373return Response.FromValue(value, message.Response); 2376throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2403switch (message.Response.Status) 2408using var document = JsonDocument.Parse(message.Response.ContentStream); 2410return Response.FromValue(value, message.Response); 2413throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2454switch (message.Response.Status) 2459using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2461return Response.FromValue(value, message.Response); 2464throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2491switch (message.Response.Status) 2496using var document = JsonDocument.Parse(message.Response.ContentStream); 2498return Response.FromValue(value, message.Response); 2501throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2538switch (message.Response.Status) 2543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2545return Response.FromValue(value, message.Response); 2548throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2571switch (message.Response.Status) 2576using var document = JsonDocument.Parse(message.Response.ContentStream); 2578return Response.FromValue(value, message.Response); 2581throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.CosmosDB (1129)
Generated\RestOperations\CassandraClustersRestOperations.cs (70)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 250return Response.FromValue(value, message.Response); 253return Response.FromValue((ClusterResourceData)null, message.Response); 255throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 287using var document = JsonDocument.Parse(message.Response.ContentStream); 289return Response.FromValue(value, message.Response); 292return Response.FromValue((ClusterResourceData)null, message.Response); 294throw ClientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 345return message.Response; 347throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 374switch (message.Response.Status) 378return message.Response; 380throw ClientDiagnostics.CreateRequestFailedException(message.Response); 436switch (message.Response.Status) 440return message.Response; 442throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 474switch (message.Response.Status) 478return message.Response; 480throw ClientDiagnostics.CreateRequestFailedException(message.Response); 536switch (message.Response.Status) 540return message.Response; 542throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 574switch (message.Response.Status) 578return message.Response; 580throw ClientDiagnostics.CreateRequestFailedException(message.Response); 637switch (message.Response.Status) 640return message.Response; 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 677return message.Response; 679throw ClientDiagnostics.CreateRequestFailedException(message.Response); 727switch (message.Response.Status) 730return message.Response; 732throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 759switch (message.Response.Status) 762return message.Response; 764throw ClientDiagnostics.CreateRequestFailedException(message.Response); 812switch (message.Response.Status) 815return message.Response; 817throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 844switch (message.Response.Status) 847return message.Response; 849throw ClientDiagnostics.CreateRequestFailedException(message.Response); 897switch (message.Response.Status) 902using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 904return Response.FromValue(value, message.Response); 907throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 934switch (message.Response.Status) 939using var document = JsonDocument.Parse(message.Response.ContentStream); 941return Response.FromValue(value, message.Response); 944throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CassandraDataCentersRestOperations.cs (36)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((DataCenterResourceData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((DataCenterResourceData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 305return message.Response; 307throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 339switch (message.Response.Status) 343return message.Response; 345throw ClientDiagnostics.CreateRequestFailedException(message.Response); 408switch (message.Response.Status) 412return message.Response; 414throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 451switch (message.Response.Status) 455return message.Response; 457throw ClientDiagnostics.CreateRequestFailedException(message.Response); 520switch (message.Response.Status) 524return message.Response; 526throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 563switch (message.Response.Status) 567return message.Response; 569throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CassandraResourcesRestOperations.cs (116)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((CassandraKeyspaceData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((CassandraKeyspaceData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 416return message.Response; 418throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 454return message.Response; 456throw ClientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521return Response.FromValue((ThroughputSettingsData)null, message.Response); 523throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565return Response.FromValue((ThroughputSettingsData)null, message.Response); 567throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 635return message.Response; 637throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 678return message.Response; 680throw ClientDiagnostics.CreateRequestFailedException(message.Response); 735switch (message.Response.Status) 739return message.Response; 741throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 773switch (message.Response.Status) 777return message.Response; 779throw ClientDiagnostics.CreateRequestFailedException(message.Response); 834switch (message.Response.Status) 838return message.Response; 840throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 872switch (message.Response.Status) 876return message.Response; 878throw ClientDiagnostics.CreateRequestFailedException(message.Response); 933switch (message.Response.Status) 938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 940return Response.FromValue(value, message.Response); 943throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 975switch (message.Response.Status) 980using var document = JsonDocument.Parse(message.Response.ContentStream); 982return Response.FromValue(value, message.Response); 985throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1046switch (message.Response.Status) 1051using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1053return Response.FromValue(value, message.Response); 1056return Response.FromValue((CassandraTableData)null, message.Response); 1058throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1095switch (message.Response.Status) 1100using var document = JsonDocument.Parse(message.Response.ContentStream); 1102return Response.FromValue(value, message.Response); 1105return Response.FromValue((CassandraTableData)null, message.Response); 1107throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1177switch (message.Response.Status) 1181return message.Response; 1183throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1225switch (message.Response.Status) 1229return message.Response; 1231throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1291switch (message.Response.Status) 1295return message.Response; 1297throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1334switch (message.Response.Status) 1338return message.Response; 1340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1402switch (message.Response.Status) 1407using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1409return Response.FromValue(value, message.Response); 1412return Response.FromValue((ThroughputSettingsData)null, message.Response); 1414throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1451switch (message.Response.Status) 1456using var document = JsonDocument.Parse(message.Response.ContentStream); 1458return Response.FromValue(value, message.Response); 1461return Response.FromValue((ThroughputSettingsData)null, message.Response); 1463throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1534switch (message.Response.Status) 1538return message.Response; 1540throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1582switch (message.Response.Status) 1586return message.Response; 1588throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1650switch (message.Response.Status) 1654return message.Response; 1656throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1693switch (message.Response.Status) 1697return message.Response; 1699throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1761switch (message.Response.Status) 1765return message.Response; 1767throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1804switch (message.Response.Status) 1808return message.Response; 1810throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CollectionPartitionRegionRestOperations.cs (8)
117switch (message.Response.Status) 122using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 124return Response.FromValue(value, message.Response); 127throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 174switch (message.Response.Status) 179using var document = JsonDocument.Parse(message.Response.ContentStream); 181return Response.FromValue(value, message.Response); 184throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CollectionPartitionRestOperations.cs (16)
110switch (message.Response.Status) 115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 117return Response.FromValue(value, message.Response); 120throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 167using var document = JsonDocument.Parse(message.Response.ContentStream); 169return Response.FromValue(value, message.Response); 172throw ClientDiagnostics.CreateRequestFailedException(message.Response); 239switch (message.Response.Status) 244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 246return Response.FromValue(value, message.Response); 249throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287switch (message.Response.Status) 292using var document = JsonDocument.Parse(message.Response.ContentStream); 294return Response.FromValue(value, message.Response); 297throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CollectionRegionRestOperations.cs (8)
117switch (message.Response.Status) 122using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 124return Response.FromValue(value, message.Response); 127throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 174switch (message.Response.Status) 179using var document = JsonDocument.Parse(message.Response.ContentStream); 181return Response.FromValue(value, message.Response); 184throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CollectionRestOperations.cs (24)
110switch (message.Response.Status) 115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 117return Response.FromValue(value, message.Response); 120throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 167using var document = JsonDocument.Parse(message.Response.ContentStream); 169return Response.FromValue(value, message.Response); 172throw ClientDiagnostics.CreateRequestFailedException(message.Response); 239switch (message.Response.Status) 244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 246return Response.FromValue(value, message.Response); 249throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287switch (message.Response.Status) 292using var document = JsonDocument.Parse(message.Response.ContentStream); 294return Response.FromValue(value, message.Response); 297throw ClientDiagnostics.CreateRequestFailedException(message.Response); 359switch (message.Response.Status) 364using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 366return Response.FromValue(value, message.Response); 369throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 406switch (message.Response.Status) 411using var document = JsonDocument.Parse(message.Response.ContentStream); 413return Response.FromValue(value, message.Response); 416throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseAccountRegionRestOperations.cs (8)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseAccountsRestOperations.cs (124)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((DatabaseAccountData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((DatabaseAccountData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 199return message.Response; 201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 236return message.Response; 238throw ClientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 297return message.Response; 299throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 334return message.Response; 336throw ClientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 386return message.Response; 388throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 415switch (message.Response.Status) 419return message.Response; 421throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 481return message.Response; 483throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 519return message.Response; 521throw ClientDiagnostics.CreateRequestFailedException(message.Response); 555switch (message.Response.Status) 560using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 562return Response.FromValue(value, message.Response); 565throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 582switch (message.Response.Status) 587using var document = JsonDocument.Parse(message.Response.ContentStream); 589return Response.FromValue(value, message.Response); 592throw ClientDiagnostics.CreateRequestFailedException(message.Response); 633switch (message.Response.Status) 638using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 640return Response.FromValue(value, message.Response); 643throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 665switch (message.Response.Status) 670using var document = JsonDocument.Parse(message.Response.ContentStream); 672return Response.FromValue(value, message.Response); 675throw ClientDiagnostics.CreateRequestFailedException(message.Response); 723switch (message.Response.Status) 728using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 730return Response.FromValue(value, message.Response); 733throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 765using var document = JsonDocument.Parse(message.Response.ContentStream); 767return Response.FromValue(value, message.Response); 770throw ClientDiagnostics.CreateRequestFailedException(message.Response); 818switch (message.Response.Status) 823using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 825return Response.FromValue(value, message.Response); 828throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 855switch (message.Response.Status) 860using var document = JsonDocument.Parse(message.Response.ContentStream); 862return Response.FromValue(value, message.Response); 865throw ClientDiagnostics.CreateRequestFailedException(message.Response); 922switch (message.Response.Status) 926return message.Response; 928throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 960switch (message.Response.Status) 964return message.Response; 966throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1023switch (message.Response.Status) 1027return message.Response; 1029throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1061switch (message.Response.Status) 1065return message.Response; 1067throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1115switch (message.Response.Status) 1120using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1122return Response.FromValue(value, message.Response); 1125throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1152switch (message.Response.Status) 1157using var document = JsonDocument.Parse(message.Response.ContentStream); 1159return Response.FromValue(value, message.Response); 1162throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1218switch (message.Response.Status) 1222return message.Response; 1224throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1256switch (message.Response.Status) 1260return message.Response; 1262throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1294switch (message.Response.Status) 1299return Response.FromValue(value, message.Response); 1304return Response.FromValue(value, message.Response); 1307throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1324switch (message.Response.Status) 1329return Response.FromValue(value, message.Response); 1334return Response.FromValue(value, message.Response); 1337throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1391switch (message.Response.Status) 1396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1398return Response.FromValue(value, message.Response); 1401throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1433switch (message.Response.Status) 1438using var document = JsonDocument.Parse(message.Response.ContentStream); 1440return Response.FromValue(value, message.Response); 1443throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1496switch (message.Response.Status) 1501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1503return Response.FromValue(value, message.Response); 1506throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1534switch (message.Response.Status) 1539using var document = JsonDocument.Parse(message.Response.ContentStream); 1541return Response.FromValue(value, message.Response); 1544throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1592switch (message.Response.Status) 1597using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1599return Response.FromValue(value, message.Response); 1602throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1629switch (message.Response.Status) 1634using var document = JsonDocument.Parse(message.Response.ContentStream); 1636return Response.FromValue(value, message.Response); 1639throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseRestOperations.cs (24)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw ClientDiagnostics.CreateRequestFailedException(message.Response); 220switch (message.Response.Status) 225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 227return Response.FromValue(value, message.Response); 230throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 263switch (message.Response.Status) 268using var document = JsonDocument.Parse(message.Response.ContentStream); 270return Response.FromValue(value, message.Response); 273throw ClientDiagnostics.CreateRequestFailedException(message.Response); 328switch (message.Response.Status) 333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 335return Response.FromValue(value, message.Response); 338throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 370switch (message.Response.Status) 375using var document = JsonDocument.Parse(message.Response.ContentStream); 377return Response.FromValue(value, message.Response); 380throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GremlinResourcesRestOperations.cs (116)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((GremlinDatabaseData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((GremlinDatabaseData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 416return message.Response; 418throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 454return message.Response; 456throw ClientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521return Response.FromValue((ThroughputSettingsData)null, message.Response); 523throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565return Response.FromValue((ThroughputSettingsData)null, message.Response); 567throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 635return message.Response; 637throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 678return message.Response; 680throw ClientDiagnostics.CreateRequestFailedException(message.Response); 735switch (message.Response.Status) 739return message.Response; 741throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 773switch (message.Response.Status) 777return message.Response; 779throw ClientDiagnostics.CreateRequestFailedException(message.Response); 834switch (message.Response.Status) 838return message.Response; 840throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 872switch (message.Response.Status) 876return message.Response; 878throw ClientDiagnostics.CreateRequestFailedException(message.Response); 933switch (message.Response.Status) 938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 940return Response.FromValue(value, message.Response); 943throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 975switch (message.Response.Status) 980using var document = JsonDocument.Parse(message.Response.ContentStream); 982return Response.FromValue(value, message.Response); 985throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1046switch (message.Response.Status) 1051using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1053return Response.FromValue(value, message.Response); 1056return Response.FromValue((GremlinGraphData)null, message.Response); 1058throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1095switch (message.Response.Status) 1100using var document = JsonDocument.Parse(message.Response.ContentStream); 1102return Response.FromValue(value, message.Response); 1105return Response.FromValue((GremlinGraphData)null, message.Response); 1107throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1177switch (message.Response.Status) 1181return message.Response; 1183throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1225switch (message.Response.Status) 1229return message.Response; 1231throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1291switch (message.Response.Status) 1295return message.Response; 1297throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1334switch (message.Response.Status) 1338return message.Response; 1340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1402switch (message.Response.Status) 1407using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1409return Response.FromValue(value, message.Response); 1412return Response.FromValue((ThroughputSettingsData)null, message.Response); 1414throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1451switch (message.Response.Status) 1456using var document = JsonDocument.Parse(message.Response.ContentStream); 1458return Response.FromValue(value, message.Response); 1461return Response.FromValue((ThroughputSettingsData)null, message.Response); 1463throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1534switch (message.Response.Status) 1538return message.Response; 1540throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1582switch (message.Response.Status) 1586return message.Response; 1588throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1650switch (message.Response.Status) 1654return message.Response; 1656throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1693switch (message.Response.Status) 1697return message.Response; 1699throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1761switch (message.Response.Status) 1765return message.Response; 1767throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1804switch (message.Response.Status) 1808return message.Response; 1810throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LocationsRestOperations.cs (18)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 153switch (message.Response.Status) 158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 160return Response.FromValue(value, message.Response); 163return Response.FromValue((CosmosDBLocationData)null, message.Response); 165throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 187switch (message.Response.Status) 192using var document = JsonDocument.Parse(message.Response.ContentStream); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((CosmosDBLocationData)null, message.Response); 199throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MongoDBResourcesRestOperations.cs (122)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((MongoDBDatabaseData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((MongoDBDatabaseData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 416return message.Response; 418throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 454return message.Response; 456throw ClientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521return Response.FromValue((ThroughputSettingsData)null, message.Response); 523throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565return Response.FromValue((ThroughputSettingsData)null, message.Response); 567throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 635return message.Response; 637throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 678return message.Response; 680throw ClientDiagnostics.CreateRequestFailedException(message.Response); 735switch (message.Response.Status) 739return message.Response; 741throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 773switch (message.Response.Status) 777return message.Response; 779throw ClientDiagnostics.CreateRequestFailedException(message.Response); 834switch (message.Response.Status) 838return message.Response; 840throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 872switch (message.Response.Status) 876return message.Response; 878throw ClientDiagnostics.CreateRequestFailedException(message.Response); 933switch (message.Response.Status) 938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 940return Response.FromValue(value, message.Response); 943throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 975switch (message.Response.Status) 980using var document = JsonDocument.Parse(message.Response.ContentStream); 982return Response.FromValue(value, message.Response); 985throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1046switch (message.Response.Status) 1051using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1053return Response.FromValue(value, message.Response); 1056return Response.FromValue((MongoDBCollectionData)null, message.Response); 1058throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1095switch (message.Response.Status) 1100using var document = JsonDocument.Parse(message.Response.ContentStream); 1102return Response.FromValue(value, message.Response); 1105return Response.FromValue((MongoDBCollectionData)null, message.Response); 1107throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1177switch (message.Response.Status) 1181return message.Response; 1183throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1225switch (message.Response.Status) 1229return message.Response; 1231throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1291switch (message.Response.Status) 1295return message.Response; 1297throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1334switch (message.Response.Status) 1338return message.Response; 1340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1402switch (message.Response.Status) 1407using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1409return Response.FromValue(value, message.Response); 1412return Response.FromValue((ThroughputSettingsData)null, message.Response); 1414throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1451switch (message.Response.Status) 1456using var document = JsonDocument.Parse(message.Response.ContentStream); 1458return Response.FromValue(value, message.Response); 1461return Response.FromValue((ThroughputSettingsData)null, message.Response); 1463throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1534switch (message.Response.Status) 1538return message.Response; 1540throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1582switch (message.Response.Status) 1586return message.Response; 1588throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1650switch (message.Response.Status) 1654return message.Response; 1656throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1693switch (message.Response.Status) 1697return message.Response; 1699throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1761switch (message.Response.Status) 1765return message.Response; 1767throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1804switch (message.Response.Status) 1808return message.Response; 1810throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1881switch (message.Response.Status) 1885return message.Response; 1887throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1929switch (message.Response.Status) 1933return message.Response; 1935throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PartitionKeyRangeIdRegionRestOperations.cs (8)
124switch (message.Response.Status) 129using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 131return Response.FromValue(value, message.Response); 134throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PartitionKeyRangeIdRestOperations.cs (8)
117switch (message.Response.Status) 122using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 124return Response.FromValue(value, message.Response); 127throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 174switch (message.Response.Status) 179using var document = JsonDocument.Parse(message.Response.ContentStream); 181return Response.FromValue(value, message.Response); 184throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PercentileRestOperations.cs (8)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PercentileSourceTargetRestOperations.cs (8)
110switch (message.Response.Status) 115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 117return Response.FromValue(value, message.Response); 120throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 167using var document = JsonDocument.Parse(message.Response.ContentStream); 169return Response.FromValue(value, message.Response); 172throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PercentileTargetRestOperations.cs (8)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (30)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 417return message.Response; 419throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 451switch (message.Response.Status) 455return message.Response; 457throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (18)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((PrivateLinkResourceData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((PrivateLinkResourceData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableDatabaseAccountsRestOperations.cs (26)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 159switch (message.Response.Status) 164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 166return Response.FromValue(value, message.Response); 169throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 250return Response.FromValue(value, message.Response); 253return Response.FromValue((RestorableDatabaseAccountData)null, message.Response); 255throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 287using var document = JsonDocument.Parse(message.Response.ContentStream); 289return Response.FromValue(value, message.Response); 292return Response.FromValue((RestorableDatabaseAccountData)null, message.Response); 294throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableMongodbCollectionsRestOperations.cs (8)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableMongodbDatabasesRestOperations.cs (8)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableMongodbResourcesRestOperations.cs (8)
100switch (message.Response.Status) 105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableSqlContainersRestOperations.cs (8)
105switch (message.Response.Status) 110using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 112return Response.FromValue(value, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableSqlDatabasesRestOperations.cs (8)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableSqlResourcesRestOperations.cs (8)
100switch (message.Response.Status) 105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SqlResourcesRestOperations.cs (212)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((SqlDatabaseData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((SqlDatabaseData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 416return message.Response; 418throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 454return message.Response; 456throw ClientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521return Response.FromValue((ThroughputSettingsData)null, message.Response); 523throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565return Response.FromValue((ThroughputSettingsData)null, message.Response); 567throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 635return message.Response; 637throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 678return message.Response; 680throw ClientDiagnostics.CreateRequestFailedException(message.Response); 735switch (message.Response.Status) 739return message.Response; 741throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 773switch (message.Response.Status) 777return message.Response; 779throw ClientDiagnostics.CreateRequestFailedException(message.Response); 834switch (message.Response.Status) 838return message.Response; 840throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 872switch (message.Response.Status) 876return message.Response; 878throw ClientDiagnostics.CreateRequestFailedException(message.Response); 933switch (message.Response.Status) 938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 940return Response.FromValue(value, message.Response); 943throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 975switch (message.Response.Status) 980using var document = JsonDocument.Parse(message.Response.ContentStream); 982return Response.FromValue(value, message.Response); 985throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1046switch (message.Response.Status) 1051using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1053return Response.FromValue(value, message.Response); 1056return Response.FromValue((SqlContainerData)null, message.Response); 1058throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1095switch (message.Response.Status) 1100using var document = JsonDocument.Parse(message.Response.ContentStream); 1102return Response.FromValue(value, message.Response); 1105return Response.FromValue((SqlContainerData)null, message.Response); 1107throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1177switch (message.Response.Status) 1181return message.Response; 1183throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1225switch (message.Response.Status) 1229return message.Response; 1231throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1291switch (message.Response.Status) 1295return message.Response; 1297throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1334switch (message.Response.Status) 1338return message.Response; 1340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1402switch (message.Response.Status) 1407using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1409return Response.FromValue(value, message.Response); 1412return Response.FromValue((ThroughputSettingsData)null, message.Response); 1414throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1451switch (message.Response.Status) 1456using var document = JsonDocument.Parse(message.Response.ContentStream); 1458return Response.FromValue(value, message.Response); 1461return Response.FromValue((ThroughputSettingsData)null, message.Response); 1463throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1534switch (message.Response.Status) 1538return message.Response; 1540throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1582switch (message.Response.Status) 1586return message.Response; 1588throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1650switch (message.Response.Status) 1654return message.Response; 1656throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1693switch (message.Response.Status) 1697return message.Response; 1699throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1761switch (message.Response.Status) 1765return message.Response; 1767throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1804switch (message.Response.Status) 1808return message.Response; 1810throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1872switch (message.Response.Status) 1877using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1879return Response.FromValue(value, message.Response); 1882throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1919switch (message.Response.Status) 1924using var document = JsonDocument.Parse(message.Response.ContentStream); 1926return Response.FromValue(value, message.Response); 1929throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1997switch (message.Response.Status) 2002using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2004return Response.FromValue(value, message.Response); 2007return Response.FromValue((SqlStoredProcedureData)null, message.Response); 2009throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2051switch (message.Response.Status) 2056using var document = JsonDocument.Parse(message.Response.ContentStream); 2058return Response.FromValue(value, message.Response); 2061return Response.FromValue((SqlStoredProcedureData)null, message.Response); 2063throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2140switch (message.Response.Status) 2144return message.Response; 2146throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2193switch (message.Response.Status) 2197return message.Response; 2199throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2266switch (message.Response.Status) 2270return message.Response; 2272throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2314switch (message.Response.Status) 2318return message.Response; 2320throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2382switch (message.Response.Status) 2387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2389return Response.FromValue(value, message.Response); 2392throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2429switch (message.Response.Status) 2434using var document = JsonDocument.Parse(message.Response.ContentStream); 2436return Response.FromValue(value, message.Response); 2439throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2507switch (message.Response.Status) 2512using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2514return Response.FromValue(value, message.Response); 2517return Response.FromValue((SqlUserDefinedFunctionData)null, message.Response); 2519throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2561switch (message.Response.Status) 2566using var document = JsonDocument.Parse(message.Response.ContentStream); 2568return Response.FromValue(value, message.Response); 2571return Response.FromValue((SqlUserDefinedFunctionData)null, message.Response); 2573throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2650switch (message.Response.Status) 2654return message.Response; 2656throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2703switch (message.Response.Status) 2707return message.Response; 2709throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2776switch (message.Response.Status) 2780return message.Response; 2782throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2824switch (message.Response.Status) 2828return message.Response; 2830throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2892switch (message.Response.Status) 2897using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2899return Response.FromValue(value, message.Response); 2902throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2939switch (message.Response.Status) 2944using var document = JsonDocument.Parse(message.Response.ContentStream); 2946return Response.FromValue(value, message.Response); 2949throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3017switch (message.Response.Status) 3022using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 3024return Response.FromValue(value, message.Response); 3027return Response.FromValue((SqlTriggerData)null, message.Response); 3029throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3071switch (message.Response.Status) 3076using var document = JsonDocument.Parse(message.Response.ContentStream); 3078return Response.FromValue(value, message.Response); 3081return Response.FromValue((SqlTriggerData)null, message.Response); 3083throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3160switch (message.Response.Status) 3164return message.Response; 3166throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3213switch (message.Response.Status) 3217return message.Response; 3219throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3286switch (message.Response.Status) 3290return message.Response; 3292throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3334switch (message.Response.Status) 3338return message.Response; 3340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 3411switch (message.Response.Status) 3415return message.Response; 3417throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 3459switch (message.Response.Status) 3463return message.Response; 3465throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TableResourcesRestOperations.cs (58)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((CosmosTableData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((CosmosTableData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 416return message.Response; 418throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 454return message.Response; 456throw ClientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521return Response.FromValue((ThroughputSettingsData)null, message.Response); 523throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565return Response.FromValue((ThroughputSettingsData)null, message.Response); 567throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 635return message.Response; 637throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 678return message.Response; 680throw ClientDiagnostics.CreateRequestFailedException(message.Response); 735switch (message.Response.Status) 739return message.Response; 741throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 773switch (message.Response.Status) 777return message.Response; 779throw ClientDiagnostics.CreateRequestFailedException(message.Response); 834switch (message.Response.Status) 838return message.Response; 840throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 872switch (message.Response.Status) 876return message.Response; 878throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.Dns (150)
Generated\DnsResourceReferenceRestOperations.cs (8)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RecordSetsRestOperations.cs (78)
114switch (message.Response.Status) 119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 121return Response.FromValue(value, message.Response); 124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 158switch (message.Response.Status) 163using var document = JsonDocument.Parse(message.Response.ContentStream); 165return Response.FromValue(value, message.Response); 168throw _clientDiagnostics.CreateRequestFailedException(message.Response); 238switch (message.Response.Status) 244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 246return Response.FromValue(value, message.Response); 249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 284switch (message.Response.Status) 290using var document = JsonDocument.Parse(message.Response.ContentStream); 292return Response.FromValue(value, message.Response); 295throw _clientDiagnostics.CreateRequestFailedException(message.Response); 351switch (message.Response.Status) 355return message.Response; 357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 486using var document = JsonDocument.Parse(message.Response.ContentStream); 488return Response.FromValue(value, message.Response); 491throw _clientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw _clientDiagnostics.CreateRequestFailedException(message.Response); 642switch (message.Response.Status) 647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 649return Response.FromValue(value, message.Response); 652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 676switch (message.Response.Status) 681using var document = JsonDocument.Parse(message.Response.ContentStream); 683return Response.FromValue(value, message.Response); 686throw _clientDiagnostics.CreateRequestFailedException(message.Response); 738switch (message.Response.Status) 743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 745return Response.FromValue(value, message.Response); 748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 772switch (message.Response.Status) 777using var document = JsonDocument.Parse(message.Response.ContentStream); 779return Response.FromValue(value, message.Response); 782throw _clientDiagnostics.CreateRequestFailedException(message.Response); 825switch (message.Response.Status) 830using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 832return Response.FromValue(value, message.Response); 835throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 865switch (message.Response.Status) 870using var document = JsonDocument.Parse(message.Response.ContentStream); 872return Response.FromValue(value, message.Response); 875throw _clientDiagnostics.CreateRequestFailedException(message.Response); 917switch (message.Response.Status) 922using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 924return Response.FromValue(value, message.Response); 927throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 956switch (message.Response.Status) 961using var document = JsonDocument.Parse(message.Response.ContentStream); 963return Response.FromValue(value, message.Response); 966throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1008switch (message.Response.Status) 1013using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1015return Response.FromValue(value, message.Response); 1018throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1047switch (message.Response.Status) 1052using var document = JsonDocument.Parse(message.Response.ContentStream); 1054return Response.FromValue(value, message.Response); 1057throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ZonesRestOperations.cs (62)
109switch (message.Response.Status) 115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 117return Response.FromValue(value, message.Response); 120throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 149switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw _clientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211return message.Response; 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 241return message.Response; 243throw _clientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 289using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 291return Response.FromValue(value, message.Response); 294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 321using var document = JsonDocument.Parse(message.Response.ContentStream); 323return Response.FromValue(value, message.Response); 326throw _clientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 388return Response.FromValue(value, message.Response); 391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424using var document = JsonDocument.Parse(message.Response.ContentStream); 426return Response.FromValue(value, message.Response); 429throw _clientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 504return Response.FromValue(value, message.Response); 507throw _clientDiagnostics.CreateRequestFailedException(message.Response); 538switch (message.Response.Status) 543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 545return Response.FromValue(value, message.Response); 548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 559switch (message.Response.Status) 564using var document = JsonDocument.Parse(message.Response.ContentStream); 566return Response.FromValue(value, message.Response); 569throw _clientDiagnostics.CreateRequestFailedException(message.Response); 605switch (message.Response.Status) 610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 612return Response.FromValue(value, message.Response); 615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 638switch (message.Response.Status) 643using var document = JsonDocument.Parse(message.Response.ContentStream); 645return Response.FromValue(value, message.Response); 648throw _clientDiagnostics.CreateRequestFailedException(message.Response); 679switch (message.Response.Status) 684using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 686return Response.FromValue(value, message.Response); 689throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 707switch (message.Response.Status) 712using var document = JsonDocument.Parse(message.Response.ContentStream); 714return Response.FromValue(value, message.Response); 717throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\ArmOperationHelpers.cs (2)
202return message.Response; 224return message.Response;
Azure.ResourceManager.EventHubs (575)
Generated\RestOperations\ClustersRestOperations.cs (58)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 147switch (message.Response.Status) 152using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 154return Response.FromValue(value, message.Response); 157throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 174switch (message.Response.Status) 179using var document = JsonDocument.Parse(message.Response.ContentStream); 181return Response.FromValue(value, message.Response); 184throw ClientDiagnostics.CreateRequestFailedException(message.Response); 225switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return Response.FromValue(value, message.Response); 235throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw ClientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 321return Response.FromValue(value, message.Response); 324return Response.FromValue((EventHubClusterData)null, message.Response); 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 358using var document = JsonDocument.Parse(message.Response.ContentStream); 360return Response.FromValue(value, message.Response); 363return Response.FromValue((EventHubClusterData)null, message.Response); 365throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455using var document = JsonDocument.Parse(message.Response.ContentStream); 457return Response.FromValue(value, message.Response); 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 496switch (message.Response.Status) 501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 503return Response.FromValue(value, message.Response); 506throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 528switch (message.Response.Status) 533using var document = JsonDocument.Parse(message.Response.ContentStream); 535return Response.FromValue(value, message.Response); 538throw ClientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 586return Response.FromValue(value, message.Response); 589throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 616switch (message.Response.Status) 621using var document = JsonDocument.Parse(message.Response.ContentStream); 623return Response.FromValue(value, message.Response); 626throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ConfigurationRestOperations.cs (18)
99switch (message.Response.Status) 105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110return Response.FromValue((ClusterQuotaConfigurationProperties)null, message.Response); 112throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155return Response.FromValue((ClusterQuotaConfigurationProperties)null, message.Response); 157throw ClientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 212return Response.FromValue(value, message.Response); 215throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242switch (message.Response.Status) 247using var document = JsonDocument.Parse(message.Response.ContentStream); 249return Response.FromValue(value, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ConsumerGroupsRestOperations.cs (40)
112switch (message.Response.Status) 117using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 119return Response.FromValue(value, message.Response); 122throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 169using var document = JsonDocument.Parse(message.Response.ContentStream); 171return Response.FromValue(value, message.Response); 174throw ClientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 239return message.Response; 241throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 278switch (message.Response.Status) 282return message.Response; 284throw ClientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 352return Response.FromValue(value, message.Response); 355return Response.FromValue((ConsumerGroupData)null, message.Response); 357throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 399using var document = JsonDocument.Parse(message.Response.ContentStream); 401return Response.FromValue(value, message.Response); 404return Response.FromValue((ConsumerGroupData)null, message.Response); 406throw ClientDiagnostics.CreateRequestFailedException(message.Response); 471switch (message.Response.Status) 476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 478return Response.FromValue(value, message.Response); 481throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw ClientDiagnostics.CreateRequestFailedException(message.Response); 578switch (message.Response.Status) 583using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 585return Response.FromValue(value, message.Response); 588throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 627switch (message.Response.Status) 632using var document = JsonDocument.Parse(message.Response.ContentStream); 634return Response.FromValue(value, message.Response); 637throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DisasterRecoveriesRestOperations.cs (16)
104switch (message.Response.Status) 109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 111return Response.FromValue(value, message.Response); 114return Response.FromValue((DisasterRecoveryData)null, message.Response); 116throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 153switch (message.Response.Status) 158using var document = JsonDocument.Parse(message.Response.ContentStream); 160return Response.FromValue(value, message.Response); 163return Response.FromValue((DisasterRecoveryData)null, message.Response); 165throw ClientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 223return message.Response; 225throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 261return message.Response; 263throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DisasterRecoveryConfigsRestOperations.cs (80)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 141switch (message.Response.Status) 146using var document = JsonDocument.Parse(message.Response.ContentStream); 148return Response.FromValue(value, message.Response); 151throw ClientDiagnostics.CreateRequestFailedException(message.Response); 199switch (message.Response.Status) 204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 206return Response.FromValue(value, message.Response); 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 241using var document = JsonDocument.Parse(message.Response.ContentStream); 243return Response.FromValue(value, message.Response); 246throw ClientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 307return Response.FromValue(value, message.Response); 310return Response.FromValue((DisasterRecoveryData)null, message.Response); 312throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 344switch (message.Response.Status) 349using var document = JsonDocument.Parse(message.Response.ContentStream); 351return Response.FromValue(value, message.Response); 354return Response.FromValue((DisasterRecoveryData)null, message.Response); 356throw ClientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 414return message.Response; 416throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 451return message.Response; 453throw ClientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 511return message.Response; 513throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 548return message.Response; 550throw ClientDiagnostics.CreateRequestFailedException(message.Response); 605switch (message.Response.Status) 610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 612return Response.FromValue(value, message.Response); 615throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 647switch (message.Response.Status) 652using var document = JsonDocument.Parse(message.Response.ContentStream); 654return Response.FromValue(value, message.Response); 657throw ClientDiagnostics.CreateRequestFailedException(message.Response); 718switch (message.Response.Status) 723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 725return Response.FromValue(value, message.Response); 728return Response.FromValue((AuthorizationRuleData)null, message.Response); 730throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 767switch (message.Response.Status) 772using var document = JsonDocument.Parse(message.Response.ContentStream); 774return Response.FromValue(value, message.Response); 777return Response.FromValue((AuthorizationRuleData)null, message.Response); 779throw ClientDiagnostics.CreateRequestFailedException(message.Response); 841switch (message.Response.Status) 846using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 848return Response.FromValue(value, message.Response); 851throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 888switch (message.Response.Status) 893using var document = JsonDocument.Parse(message.Response.ContentStream); 895return Response.FromValue(value, message.Response); 898throw ClientDiagnostics.CreateRequestFailedException(message.Response); 944switch (message.Response.Status) 949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 951return Response.FromValue(value, message.Response); 954throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 986switch (message.Response.Status) 991using var document = JsonDocument.Parse(message.Response.ContentStream); 993return Response.FromValue(value, message.Response); 996throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1047switch (message.Response.Status) 1052using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1054return Response.FromValue(value, message.Response); 1057throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1094switch (message.Response.Status) 1099using var document = JsonDocument.Parse(message.Response.ContentStream); 1101return Response.FromValue(value, message.Response); 1104throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EventHubClustersRestOperations.cs (18)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 203return message.Response; 205throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242return message.Response; 244throw ClientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296return message.Response; 298throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 325switch (message.Response.Status) 330return message.Response; 332throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EventHubNamespacesRestOperations.cs (22)
97switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 141return message.Response; 143throw ClientDiagnostics.CreateRequestFailedException(message.Response); 190switch (message.Response.Status) 195return message.Response; 197throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 224switch (message.Response.Status) 229return message.Response; 231throw ClientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 293using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 295return Response.FromValue(value, message.Response); 298return Response.FromValue((EventHubNamespaceData)null, message.Response); 300throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((EventHubNamespaceData)null, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EventHubsRestOperations.cs (96)
100switch (message.Response.Status) 105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 219return Response.FromValue(value, message.Response); 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269throw ClientDiagnostics.CreateRequestFailedException(message.Response); 323switch (message.Response.Status) 327return message.Response; 329throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 361switch (message.Response.Status) 365return message.Response; 367throw ClientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 428return Response.FromValue(value, message.Response); 431return Response.FromValue((EventHubData)null, message.Response); 433throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475return Response.FromValue((EventHubData)null, message.Response); 477throw ClientDiagnostics.CreateRequestFailedException(message.Response); 532switch (message.Response.Status) 537using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 539return Response.FromValue(value, message.Response); 542throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 574switch (message.Response.Status) 579using var document = JsonDocument.Parse(message.Response.ContentStream); 581return Response.FromValue(value, message.Response); 584throw ClientDiagnostics.CreateRequestFailedException(message.Response); 654switch (message.Response.Status) 659using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 661return Response.FromValue(value, message.Response); 664throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 706switch (message.Response.Status) 711using var document = JsonDocument.Parse(message.Response.ContentStream); 713return Response.FromValue(value, message.Response); 716throw ClientDiagnostics.CreateRequestFailedException(message.Response); 777switch (message.Response.Status) 782using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 784return Response.FromValue(value, message.Response); 787return Response.FromValue((AuthorizationRuleData)null, message.Response); 789throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 826switch (message.Response.Status) 831using var document = JsonDocument.Parse(message.Response.ContentStream); 833return Response.FromValue(value, message.Response); 836return Response.FromValue((AuthorizationRuleData)null, message.Response); 838throw ClientDiagnostics.CreateRequestFailedException(message.Response); 899switch (message.Response.Status) 903return message.Response; 905throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 942switch (message.Response.Status) 946return message.Response; 948throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1010switch (message.Response.Status) 1015using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1017return Response.FromValue(value, message.Response); 1020throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1057switch (message.Response.Status) 1062using var document = JsonDocument.Parse(message.Response.ContentStream); 1064return Response.FromValue(value, message.Response); 1067throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1138switch (message.Response.Status) 1143using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1145return Response.FromValue(value, message.Response); 1148throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1190switch (message.Response.Status) 1195using var document = JsonDocument.Parse(message.Response.ContentStream); 1197return Response.FromValue(value, message.Response); 1200throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1248switch (message.Response.Status) 1253using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1255return Response.FromValue(value, message.Response); 1258throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1292switch (message.Response.Status) 1297using var document = JsonDocument.Parse(message.Response.ContentStream); 1299return Response.FromValue(value, message.Response); 1302throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1353switch (message.Response.Status) 1358using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1360return Response.FromValue(value, message.Response); 1363throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1400switch (message.Response.Status) 1405using var document = JsonDocument.Parse(message.Response.ContentStream); 1407return Response.FromValue(value, message.Response); 1410throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NamespacesRestOperations.cs (132)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 250return Response.FromValue(value, message.Response); 253return Response.FromValue((EventHubNamespaceData)null, message.Response); 255throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 287using var document = JsonDocument.Parse(message.Response.ContentStream); 289return Response.FromValue(value, message.Response); 292return Response.FromValue((EventHubNamespaceData)null, message.Response); 294throw ClientDiagnostics.CreateRequestFailedException(message.Response); 351switch (message.Response.Status) 356using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 358return Response.FromValue(value, message.Response); 361throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 393switch (message.Response.Status) 398using var document = JsonDocument.Parse(message.Response.ContentStream); 400return Response.FromValue(value, message.Response); 403throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 458return Response.FromValue(value, message.Response); 461return Response.FromValue((NetworkRuleSetData)null, message.Response); 463throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 490switch (message.Response.Status) 495using var document = JsonDocument.Parse(message.Response.ContentStream); 497return Response.FromValue(value, message.Response); 500return Response.FromValue((NetworkRuleSetData)null, message.Response); 502throw ClientDiagnostics.CreateRequestFailedException(message.Response); 550switch (message.Response.Status) 555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 557return Response.FromValue(value, message.Response); 560throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 587switch (message.Response.Status) 592using var document = JsonDocument.Parse(message.Response.ContentStream); 594return Response.FromValue(value, message.Response); 597throw ClientDiagnostics.CreateRequestFailedException(message.Response); 645switch (message.Response.Status) 650using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 652return Response.FromValue(value, message.Response); 655throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 682switch (message.Response.Status) 687using var document = JsonDocument.Parse(message.Response.ContentStream); 689return Response.FromValue(value, message.Response); 692throw ClientDiagnostics.CreateRequestFailedException(message.Response); 755switch (message.Response.Status) 760using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 762return Response.FromValue(value, message.Response); 765throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 802switch (message.Response.Status) 807using var document = JsonDocument.Parse(message.Response.ContentStream); 809return Response.FromValue(value, message.Response); 812throw ClientDiagnostics.CreateRequestFailedException(message.Response); 866switch (message.Response.Status) 870return message.Response; 872throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 904switch (message.Response.Status) 908return message.Response; 910throw ClientDiagnostics.CreateRequestFailedException(message.Response); 964switch (message.Response.Status) 969using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 971return Response.FromValue(value, message.Response); 974return Response.FromValue((AuthorizationRuleData)null, message.Response); 976throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1008switch (message.Response.Status) 1013using var document = JsonDocument.Parse(message.Response.ContentStream); 1015return Response.FromValue(value, message.Response); 1018return Response.FromValue((AuthorizationRuleData)null, message.Response); 1020throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1075switch (message.Response.Status) 1080using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1082return Response.FromValue(value, message.Response); 1085throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1117switch (message.Response.Status) 1122using var document = JsonDocument.Parse(message.Response.ContentStream); 1124return Response.FromValue(value, message.Response); 1127throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1191switch (message.Response.Status) 1196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1198return Response.FromValue(value, message.Response); 1201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1238switch (message.Response.Status) 1243using var document = JsonDocument.Parse(message.Response.ContentStream); 1245return Response.FromValue(value, message.Response); 1248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1291switch (message.Response.Status) 1296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1298return Response.FromValue(value, message.Response); 1301throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1323switch (message.Response.Status) 1328using var document = JsonDocument.Parse(message.Response.ContentStream); 1330return Response.FromValue(value, message.Response); 1333throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1369switch (message.Response.Status) 1374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1376return Response.FromValue(value, message.Response); 1379throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1401switch (message.Response.Status) 1406using var document = JsonDocument.Parse(message.Response.ContentStream); 1408return Response.FromValue(value, message.Response); 1411throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1452switch (message.Response.Status) 1457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1459return Response.FromValue(value, message.Response); 1462throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1489switch (message.Response.Status) 1494using var document = JsonDocument.Parse(message.Response.ContentStream); 1496return Response.FromValue(value, message.Response); 1499throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1545switch (message.Response.Status) 1550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1552return Response.FromValue(value, message.Response); 1555throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1587switch (message.Response.Status) 1592using var document = JsonDocument.Parse(message.Response.ContentStream); 1594return Response.FromValue(value, message.Response); 1597throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (40)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 208return Response.FromValue(value, message.Response); 211throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 248switch (message.Response.Status) 254using var document = JsonDocument.Parse(message.Response.ContentStream); 256return Response.FromValue(value, message.Response); 259throw ClientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318return message.Response; 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 425throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 457switch (message.Response.Status) 462using var document = JsonDocument.Parse(message.Response.ContentStream); 464return Response.FromValue(value, message.Response); 467return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 469throw ClientDiagnostics.CreateRequestFailedException(message.Response); 515switch (message.Response.Status) 520using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 522return Response.FromValue(value, message.Response); 525throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 557switch (message.Response.Status) 562using var document = JsonDocument.Parse(message.Response.ContentStream); 564return Response.FromValue(value, message.Response); 567throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (8)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SchemaRegistryRestOperations.cs (40)
100switch (message.Response.Status) 105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 218return Response.FromValue(value, message.Response); 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw ClientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 361return message.Response; 363throw ClientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426return Response.FromValue((SchemaGroupData)null, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 464using var document = JsonDocument.Parse(message.Response.ContentStream); 466return Response.FromValue(value, message.Response); 469return Response.FromValue((SchemaGroupData)null, message.Response); 471throw ClientDiagnostics.CreateRequestFailedException(message.Response); 519switch (message.Response.Status) 524using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 526return Response.FromValue(value, message.Response); 529throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 563switch (message.Response.Status) 568using var document = JsonDocument.Parse(message.Response.ContentStream); 570return Response.FromValue(value, message.Response); 573throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.Insights (520)
Generated\ActionGroupsRestOperations.cs (52)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 265switch (message.Response.Status) 269return message.Response; 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 297return message.Response; 299throw _clientDiagnostics.CreateRequestFailedException(message.Response); 349switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 391using var document = JsonDocument.Parse(message.Response.ContentStream); 393return Response.FromValue(value, message.Response); 396throw _clientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 442switch (message.Response.Status) 447using var document = JsonDocument.Parse(message.Response.ContentStream); 449return Response.FromValue(value, message.Response); 452throw _clientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 494return Response.FromValue(value, message.Response); 497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw _clientDiagnostics.CreateRequestFailedException(message.Response); 575switch (message.Response.Status) 579return message.Response; 581throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 612return message.Response; 614throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ActivityLogAlertsRestOperations.cs (46)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 265switch (message.Response.Status) 269return message.Response; 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 297return message.Response; 299throw _clientDiagnostics.CreateRequestFailedException(message.Response); 349switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 391using var document = JsonDocument.Parse(message.Response.ContentStream); 393return Response.FromValue(value, message.Response); 396throw _clientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 442switch (message.Response.Status) 447using var document = JsonDocument.Parse(message.Response.ContentStream); 449return Response.FromValue(value, message.Response); 452throw _clientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 494return Response.FromValue(value, message.Response); 497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ActivityLogsRestOperations.cs (16)
81switch (message.Response.Status) 86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 88return Response.FromValue(value, message.Response); 91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109switch (message.Response.Status) 114using var document = JsonDocument.Parse(message.Response.ContentStream); 116return Response.FromValue(value, message.Response); 119throw _clientDiagnostics.CreateRequestFailedException(message.Response); 155switch (message.Response.Status) 160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 162return Response.FromValue(value, message.Response); 165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 188switch (message.Response.Status) 193using var document = JsonDocument.Parse(message.Response.ContentStream); 195return Response.FromValue(value, message.Response); 198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AlertRuleIncidentsRestOperations.cs (16)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw _clientDiagnostics.CreateRequestFailedException(message.Response); 179switch (message.Response.Status) 184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 186return Response.FromValue(value, message.Response); 189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AlertRulesRestOperations.cs (46)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 181switch (message.Response.Status) 185return message.Response; 187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 209switch (message.Response.Status) 213return message.Response; 215throw _clientDiagnostics.CreateRequestFailedException(message.Response); 256switch (message.Response.Status) 261using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 263return Response.FromValue(value, message.Response); 266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 288switch (message.Response.Status) 293using var document = JsonDocument.Parse(message.Response.ContentStream); 295return Response.FromValue(value, message.Response); 298throw _clientDiagnostics.CreateRequestFailedException(message.Response); 348switch (message.Response.Status) 354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 356return Response.FromValue(value, message.Response); 359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 386switch (message.Response.Status) 392using var document = JsonDocument.Parse(message.Response.ContentStream); 394return Response.FromValue(value, message.Response); 397throw _clientDiagnostics.CreateRequestFailedException(message.Response); 432switch (message.Response.Status) 437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 439return Response.FromValue(value, message.Response); 442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 464using var document = JsonDocument.Parse(message.Response.ContentStream); 466return Response.FromValue(value, message.Response); 469throw _clientDiagnostics.CreateRequestFailedException(message.Response); 495switch (message.Response.Status) 500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 502return Response.FromValue(value, message.Response); 505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AutoscaleSettingsRestOperations.cs (62)
77switch (message.Response.Status) 82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 84return Response.FromValue(value, message.Response); 87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 104switch (message.Response.Status) 109using var document = JsonDocument.Parse(message.Response.ContentStream); 111return Response.FromValue(value, message.Response); 114throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 172return Response.FromValue(value, message.Response); 175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 202switch (message.Response.Status) 208using var document = JsonDocument.Parse(message.Response.ContentStream); 210return Response.FromValue(value, message.Response); 213throw _clientDiagnostics.CreateRequestFailedException(message.Response); 254switch (message.Response.Status) 258return message.Response; 260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 286return message.Response; 288throw _clientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 336return Response.FromValue(value, message.Response); 339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 361switch (message.Response.Status) 366using var document = JsonDocument.Parse(message.Response.ContentStream); 368return Response.FromValue(value, message.Response); 371throw _clientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 428return Response.FromValue(value, message.Response); 431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 458switch (message.Response.Status) 463using var document = JsonDocument.Parse(message.Response.ContentStream); 465return Response.FromValue(value, message.Response); 468throw _clientDiagnostics.CreateRequestFailedException(message.Response); 494switch (message.Response.Status) 499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 501return Response.FromValue(value, message.Response); 504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw _clientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 591switch (message.Response.Status) 596using var document = JsonDocument.Parse(message.Response.ContentStream); 598return Response.FromValue(value, message.Response); 601throw _clientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 638return Response.FromValue(value, message.Response); 641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BaselinesRestOperations.cs (8)
107switch (message.Response.Status) 112using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 114return Response.FromValue(value, message.Response); 117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 142switch (message.Response.Status) 147using var document = JsonDocument.Parse(message.Response.ContentStream); 149return Response.FromValue(value, message.Response); 152throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DiagnosticSettingsCategoryRestOperations.cs (16)
73switch (message.Response.Status) 78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 80return Response.FromValue(value, message.Response); 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105switch (message.Response.Status) 110using var document = JsonDocument.Parse(message.Response.ContentStream); 112return Response.FromValue(value, message.Response); 115throw _clientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 155return Response.FromValue(value, message.Response); 158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DiagnosticSettingsRestOperations.cs (30)
73switch (message.Response.Status) 78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 80return Response.FromValue(value, message.Response); 83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105switch (message.Response.Status) 110using var document = JsonDocument.Parse(message.Response.ContentStream); 112return Response.FromValue(value, message.Response); 115throw _clientDiagnostics.CreateRequestFailedException(message.Response); 163switch (message.Response.Status) 168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 170return Response.FromValue(value, message.Response); 173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 200switch (message.Response.Status) 205using var document = JsonDocument.Parse(message.Response.ContentStream); 207return Response.FromValue(value, message.Response); 210throw _clientDiagnostics.CreateRequestFailedException(message.Response); 249switch (message.Response.Status) 253return message.Response; 255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 277switch (message.Response.Status) 281return message.Response; 283throw _clientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 323return Response.FromValue(value, message.Response); 326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343switch (message.Response.Status) 348using var document = JsonDocument.Parse(message.Response.ContentStream); 350return Response.FromValue(value, message.Response); 353throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventCategoriesRestOperations.cs (8)
58switch (message.Response.Status) 63using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 65return Response.FromValue(value, message.Response); 68throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 78switch (message.Response.Status) 83using var document = JsonDocument.Parse(message.Response.ContentStream); 85return Response.FromValue(value, message.Response); 88throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LogProfilesRestOperations.cs (38)
75switch (message.Response.Status) 78return message.Response; 80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 100return message.Response; 102throw _clientDiagnostics.CreateRequestFailedException(message.Response); 136switch (message.Response.Status) 141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 143return Response.FromValue(value, message.Response); 146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 163switch (message.Response.Status) 168using var document = JsonDocument.Parse(message.Response.ContentStream); 170return Response.FromValue(value, message.Response); 173throw _clientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 248switch (message.Response.Status) 253using var document = JsonDocument.Parse(message.Response.ContentStream); 255return Response.FromValue(value, message.Response); 258throw _clientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 308return Response.FromValue(value, message.Response); 311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw _clientDiagnostics.CreateRequestFailedException(message.Response); 369switch (message.Response.Status) 374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 376return Response.FromValue(value, message.Response); 379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 389switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 396return Response.FromValue(value, message.Response); 399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricAlertsRestOperations.cs (46)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return Response.FromValue(value, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 88switch (message.Response.Status) 93using var document = JsonDocument.Parse(message.Response.ContentStream); 95return Response.FromValue(value, message.Response); 98throw _clientDiagnostics.CreateRequestFailedException(message.Response); 133switch (message.Response.Status) 138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 140return Response.FromValue(value, message.Response); 143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170throw _clientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 218return Response.FromValue(value, message.Response); 221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 243switch (message.Response.Status) 248using var document = JsonDocument.Parse(message.Response.ContentStream); 250return Response.FromValue(value, message.Response); 253throw _clientDiagnostics.CreateRequestFailedException(message.Response); 303switch (message.Response.Status) 308using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 310return Response.FromValue(value, message.Response); 313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 340switch (message.Response.Status) 345using var document = JsonDocument.Parse(message.Response.ContentStream); 347return Response.FromValue(value, message.Response); 350throw _clientDiagnostics.CreateRequestFailedException(message.Response); 400switch (message.Response.Status) 405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 407return Response.FromValue(value, message.Response); 410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 437switch (message.Response.Status) 442using var document = JsonDocument.Parse(message.Response.ContentStream); 444return Response.FromValue(value, message.Response); 447throw _clientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 491return message.Response; 493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 519return message.Response; 521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricAlertsStatusRestOperations.cs (16)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 116switch (message.Response.Status) 121using var document = JsonDocument.Parse(message.Response.ContentStream); 123return Response.FromValue(value, message.Response); 126throw _clientDiagnostics.CreateRequestFailedException(message.Response); 174switch (message.Response.Status) 179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 181return Response.FromValue(value, message.Response); 184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricBaselineRestOperations.cs (16)
98switch (message.Response.Status) 103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 105return Response.FromValue(value, message.Response); 108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140using var document = JsonDocument.Parse(message.Response.ContentStream); 142return Response.FromValue(value, message.Response); 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 219switch (message.Response.Status) 224using var document = JsonDocument.Parse(message.Response.ContentStream); 226return Response.FromValue(value, message.Response); 229throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricDefinitionsRestOperations.cs (8)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 105using var document = JsonDocument.Parse(message.Response.ContentStream); 107return Response.FromValue(value, message.Response); 110throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricNamespacesRestOperations.cs (8)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 100switch (message.Response.Status) 105using var document = JsonDocument.Parse(message.Response.ContentStream); 107return Response.FromValue(value, message.Response); 110throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricsRestOperations.cs (8)
120switch (message.Response.Status) 125using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 127return Response.FromValue(value, message.Response); 130throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 169using var document = JsonDocument.Parse(message.Response.ContentStream); 171return Response.FromValue(value, message.Response); 174throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations.cs (8)
58switch (message.Response.Status) 63using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 65return Response.FromValue(value, message.Response); 68throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 78switch (message.Response.Status) 83using var document = JsonDocument.Parse(message.Response.ContentStream); 85return Response.FromValue(value, message.Response); 88throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ScheduledQueryRulesRestOperations.cs (46)
92switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 130switch (message.Response.Status) 136using var document = JsonDocument.Parse(message.Response.ContentStream); 138return Response.FromValue(value, message.Response); 141throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 219using var document = JsonDocument.Parse(message.Response.ContentStream); 221return Response.FromValue(value, message.Response); 224throw _clientDiagnostics.CreateRequestFailedException(message.Response); 274switch (message.Response.Status) 279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 281return Response.FromValue(value, message.Response); 284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 311switch (message.Response.Status) 316using var document = JsonDocument.Parse(message.Response.ContentStream); 318return Response.FromValue(value, message.Response); 321throw _clientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 366return message.Response; 368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 390switch (message.Response.Status) 394return message.Response; 396throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 453using var document = JsonDocument.Parse(message.Response.ContentStream); 455return Response.FromValue(value, message.Response); 458throw _clientDiagnostics.CreateRequestFailedException(message.Response); 498switch (message.Response.Status) 503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 505return Response.FromValue(value, message.Response); 508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 531using var document = JsonDocument.Parse(message.Response.ContentStream); 533return Response.FromValue(value, message.Response); 536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TenantActivityLogsRestOperations.cs (16)
68switch (message.Response.Status) 73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 75return Response.FromValue(value, message.Response); 78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 90switch (message.Response.Status) 95using var document = JsonDocument.Parse(message.Response.ContentStream); 97return Response.FromValue(value, message.Response); 100throw _clientDiagnostics.CreateRequestFailedException(message.Response); 132switch (message.Response.Status) 137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 139return Response.FromValue(value, message.Response); 142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 166using var document = JsonDocument.Parse(message.Response.ContentStream); 168return Response.FromValue(value, message.Response); 171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VMInsightsRestOperations.cs (8)
67switch (message.Response.Status) 72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 74return Response.FromValue(value, message.Response); 77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94switch (message.Response.Status) 99using var document = JsonDocument.Parse(message.Response.ContentStream); 101return Response.FromValue(value, message.Response); 104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\ArmOperationHelpers.cs (2)
202return message.Response; 224return message.Response;
Azure.ResourceManager.KeyVault (407)
Generated\RestOperations\KeysRestOperations.cs (60)
105switch (message.Response.Status) 110using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 112return Response.FromValue(value, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162throw ClientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((KeyData)null, message.Response); 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 260switch (message.Response.Status) 265using var document = JsonDocument.Parse(message.Response.ContentStream); 267return Response.FromValue(value, message.Response); 270return Response.FromValue((KeyData)null, message.Response); 272throw ClientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 327return Response.FromValue(value, message.Response); 330throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362using var document = JsonDocument.Parse(message.Response.ContentStream); 364return Response.FromValue(value, message.Response); 367throw ClientDiagnostics.CreateRequestFailedException(message.Response); 428switch (message.Response.Status) 433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 435return Response.FromValue(value, message.Response); 438return Response.FromValue((KeyData)null, message.Response); 440throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 482using var document = JsonDocument.Parse(message.Response.ContentStream); 484return Response.FromValue(value, message.Response); 487return Response.FromValue((KeyData)null, message.Response); 489throw ClientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 642switch (message.Response.Status) 647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 649return Response.FromValue(value, message.Response); 652throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 684switch (message.Response.Status) 689using var document = JsonDocument.Parse(message.Response.ContentStream); 691return Response.FromValue(value, message.Response); 694throw ClientDiagnostics.CreateRequestFailedException(message.Response); 745switch (message.Response.Status) 750using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 752return Response.FromValue(value, message.Response); 755throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 792switch (message.Response.Status) 797using var document = JsonDocument.Parse(message.Response.ContentStream); 799return Response.FromValue(value, message.Response); 802throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedHsmsRestOperations.cs (92)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 202return message.Response; 204throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 323switch (message.Response.Status) 328return message.Response; 330throw ClientDiagnostics.CreateRequestFailedException(message.Response); 377switch (message.Response.Status) 382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 384return Response.FromValue(value, message.Response); 389return Response.FromValue((ManagedHsmData)null, message.Response); 391throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 418switch (message.Response.Status) 423using var document = JsonDocument.Parse(message.Response.ContentStream); 425return Response.FromValue(value, message.Response); 430return Response.FromValue((ManagedHsmData)null, message.Response); 432throw ClientDiagnostics.CreateRequestFailedException(message.Response); 478switch (message.Response.Status) 483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 485return Response.FromValue(value, message.Response); 488throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 511switch (message.Response.Status) 516using var document = JsonDocument.Parse(message.Response.ContentStream); 518return Response.FromValue(value, message.Response); 521throw ClientDiagnostics.CreateRequestFailedException(message.Response); 560switch (message.Response.Status) 565using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 567return Response.FromValue(value, message.Response); 570throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 588switch (message.Response.Status) 593using var document = JsonDocument.Parse(message.Response.ContentStream); 595return Response.FromValue(value, message.Response); 598throw ClientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 639return Response.FromValue(value, message.Response); 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 659switch (message.Response.Status) 664using var document = JsonDocument.Parse(message.Response.ContentStream); 666return Response.FromValue(value, message.Response); 669throw ClientDiagnostics.CreateRequestFailedException(message.Response); 716switch (message.Response.Status) 721using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 723return Response.FromValue(value, message.Response); 726return Response.FromValue((DeletedManagedHsmData)null, message.Response); 728throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 755switch (message.Response.Status) 760using var document = JsonDocument.Parse(message.Response.ContentStream); 762return Response.FromValue(value, message.Response); 765return Response.FromValue((DeletedManagedHsmData)null, message.Response); 767throw ClientDiagnostics.CreateRequestFailedException(message.Response); 815switch (message.Response.Status) 818return message.Response; 820throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 847switch (message.Response.Status) 850return message.Response; 852throw ClientDiagnostics.CreateRequestFailedException(message.Response); 894switch (message.Response.Status) 899using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 901return Response.FromValue(value, message.Response); 904throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 932switch (message.Response.Status) 937using var document = JsonDocument.Parse(message.Response.ContentStream); 939return Response.FromValue(value, message.Response); 942throw ClientDiagnostics.CreateRequestFailedException(message.Response); 979switch (message.Response.Status) 984using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 986return Response.FromValue(value, message.Response); 989throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1012switch (message.Response.Status) 1017using var document = JsonDocument.Parse(message.Response.ContentStream); 1019return Response.FromValue(value, message.Response); 1022throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1058switch (message.Response.Status) 1063using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1065return Response.FromValue(value, message.Response); 1068throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1090switch (message.Response.Status) 1095using var document = JsonDocument.Parse(message.Response.ContentStream); 1097return Response.FromValue(value, message.Response); 1100throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MhsmPrivateEndpointConnectionsRestOperations.cs (40)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((MhsmPrivateEndpointConnectionData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((MhsmPrivateEndpointConnectionData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 317return Response.FromValue(value, message.Response); 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362using var document = JsonDocument.Parse(message.Response.ContentStream); 364return Response.FromValue(value, message.Response); 367throw ClientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 426return message.Response; 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 460switch (message.Response.Status) 465return message.Response; 467throw ClientDiagnostics.CreateRequestFailedException(message.Response); 513switch (message.Response.Status) 518using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 520return Response.FromValue(value, message.Response); 523throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MhsmPrivateLinkResourcesRestOperations.cs (8)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (40)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 107return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 141switch (message.Response.Status) 146using var document = JsonDocument.Parse(message.Response.ContentStream); 148return Response.FromValue(value, message.Response); 152return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274throw ClientDiagnostics.CreateRequestFailedException(message.Response); 328switch (message.Response.Status) 333return message.Response; 335throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 372return message.Response; 374throw ClientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 464using var document = JsonDocument.Parse(message.Response.ContentStream); 466return Response.FromValue(value, message.Response); 469throw ClientDiagnostics.CreateRequestFailedException(message.Response); 515switch (message.Response.Status) 520using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 522return Response.FromValue(value, message.Response); 525throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 557switch (message.Response.Status) 562using var document = JsonDocument.Parse(message.Response.ContentStream); 564return Response.FromValue(value, message.Response); 567throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (8)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SecretsRestOperations.cs (42)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 153switch (message.Response.Status) 159using var document = JsonDocument.Parse(message.Response.ContentStream); 161return Response.FromValue(value, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 227switch (message.Response.Status) 233using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 235return Response.FromValue(value, message.Response); 238throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 275switch (message.Response.Status) 281using var document = JsonDocument.Parse(message.Response.ContentStream); 283return Response.FromValue(value, message.Response); 286throw ClientDiagnostics.CreateRequestFailedException(message.Response); 340switch (message.Response.Status) 345using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 347return Response.FromValue(value, message.Response); 350return Response.FromValue((SecretData)null, message.Response); 352throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 384switch (message.Response.Status) 389using var document = JsonDocument.Parse(message.Response.ContentStream); 391return Response.FromValue(value, message.Response); 394return Response.FromValue((SecretData)null, message.Response); 396throw ClientDiagnostics.CreateRequestFailedException(message.Response); 449switch (message.Response.Status) 454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 456return Response.FromValue(value, message.Response); 459throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 487switch (message.Response.Status) 492using var document = JsonDocument.Parse(message.Response.ContentStream); 494return Response.FromValue(value, message.Response); 497throw ClientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 587switch (message.Response.Status) 592using var document = JsonDocument.Parse(message.Response.ContentStream); 594return Response.FromValue(value, message.Response); 597throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VaultsRestOperations.cs (110)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 206return Response.FromValue(value, message.Response); 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 247using var document = JsonDocument.Parse(message.Response.ContentStream); 249return Response.FromValue(value, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 303return message.Response; 305throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 336return message.Response; 338throw ClientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 392return Response.FromValue(value, message.Response); 395return Response.FromValue((VaultData)null, message.Response); 397throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 424switch (message.Response.Status) 429using var document = JsonDocument.Parse(message.Response.ContentStream); 431return Response.FromValue(value, message.Response); 434return Response.FromValue((VaultData)null, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 495switch (message.Response.Status) 501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 503return Response.FromValue(value, message.Response); 506throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 539switch (message.Response.Status) 545using var document = JsonDocument.Parse(message.Response.ContentStream); 547return Response.FromValue(value, message.Response); 550throw ClientDiagnostics.CreateRequestFailedException(message.Response); 596switch (message.Response.Status) 601using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 603return Response.FromValue(value, message.Response); 606throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 629switch (message.Response.Status) 634using var document = JsonDocument.Parse(message.Response.ContentStream); 636return Response.FromValue(value, message.Response); 639throw ClientDiagnostics.CreateRequestFailedException(message.Response); 678switch (message.Response.Status) 683using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 685return Response.FromValue(value, message.Response); 688throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 706switch (message.Response.Status) 711using var document = JsonDocument.Parse(message.Response.ContentStream); 713return Response.FromValue(value, message.Response); 716throw ClientDiagnostics.CreateRequestFailedException(message.Response); 750switch (message.Response.Status) 755using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 757return Response.FromValue(value, message.Response); 760throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 777switch (message.Response.Status) 782using var document = JsonDocument.Parse(message.Response.ContentStream); 784return Response.FromValue(value, message.Response); 787throw ClientDiagnostics.CreateRequestFailedException(message.Response); 834switch (message.Response.Status) 839using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 841return Response.FromValue(value, message.Response); 844return Response.FromValue((DeletedVaultData)null, message.Response); 846throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 873switch (message.Response.Status) 878using var document = JsonDocument.Parse(message.Response.ContentStream); 880return Response.FromValue(value, message.Response); 883return Response.FromValue((DeletedVaultData)null, message.Response); 885throw ClientDiagnostics.CreateRequestFailedException(message.Response); 933switch (message.Response.Status) 937return message.Response; 939throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 966switch (message.Response.Status) 970return message.Response; 972throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1015switch (message.Response.Status) 1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1022return Response.FromValue(value, message.Response); 1025throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1047switch (message.Response.Status) 1052using var document = JsonDocument.Parse(message.Response.ContentStream); 1054return Response.FromValue(value, message.Response); 1057throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1099switch (message.Response.Status) 1104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1106return Response.FromValue(value, message.Response); 1109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1137switch (message.Response.Status) 1142using var document = JsonDocument.Parse(message.Response.ContentStream); 1144return Response.FromValue(value, message.Response); 1147throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1184switch (message.Response.Status) 1189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1191return Response.FromValue(value, message.Response); 1194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1217switch (message.Response.Status) 1222using var document = JsonDocument.Parse(message.Response.ContentStream); 1224return Response.FromValue(value, message.Response); 1227throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1263switch (message.Response.Status) 1268using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1270return Response.FromValue(value, message.Response); 1273throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1295switch (message.Response.Status) 1300using var document = JsonDocument.Parse(message.Response.ContentStream); 1302return Response.FromValue(value, message.Response); 1305throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.KeyVault.Tests (546)
Rbac\Generated\ApplicationsRestOperations.cs (116)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 222return message.Response; 224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 244return message.Response; 246throw _clientDiagnostics.CreateRequestFailedException(message.Response); 280switch (message.Response.Status) 285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 287return Response.FromValue(value, message.Response); 290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 307switch (message.Response.Status) 312using var document = JsonDocument.Parse(message.Response.ContentStream); 314return Response.FromValue(value, message.Response); 317throw _clientDiagnostics.CreateRequestFailedException(message.Response); 360switch (message.Response.Status) 363return message.Response; 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 511return message.Response; 513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 535switch (message.Response.Status) 538return message.Response; 540throw _clientDiagnostics.CreateRequestFailedException(message.Response); 581switch (message.Response.Status) 584return message.Response; 586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 611return message.Response; 613throw _clientDiagnostics.CreateRequestFailedException(message.Response); 648switch (message.Response.Status) 653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 655return Response.FromValue(value, message.Response); 658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 675switch (message.Response.Status) 680using var document = JsonDocument.Parse(message.Response.ContentStream); 682return Response.FromValue(value, message.Response); 685throw _clientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 732return message.Response; 734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 756switch (message.Response.Status) 759return message.Response; 761throw _clientDiagnostics.CreateRequestFailedException(message.Response); 796switch (message.Response.Status) 801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 803return Response.FromValue(value, message.Response); 806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 823switch (message.Response.Status) 828using var document = JsonDocument.Parse(message.Response.ContentStream); 830return Response.FromValue(value, message.Response); 833throw _clientDiagnostics.CreateRequestFailedException(message.Response); 877switch (message.Response.Status) 880return message.Response; 882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 904switch (message.Response.Status) 907return message.Response; 909throw _clientDiagnostics.CreateRequestFailedException(message.Response); 944switch (message.Response.Status) 949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 951return Response.FromValue(value, message.Response); 954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 971switch (message.Response.Status) 976using var document = JsonDocument.Parse(message.Response.ContentStream); 978return Response.FromValue(value, message.Response); 981throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1015switch (message.Response.Status) 1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1022return Response.FromValue(value, message.Response); 1025throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1042switch (message.Response.Status) 1047using var document = JsonDocument.Parse(message.Response.ContentStream); 1049return Response.FromValue(value, message.Response); 1052throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1087switch (message.Response.Status) 1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1094return Response.FromValue(value, message.Response); 1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1119switch (message.Response.Status) 1124using var document = JsonDocument.Parse(message.Response.ContentStream); 1126return Response.FromValue(value, message.Response); 1129throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1159switch (message.Response.Status) 1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1166return Response.FromValue(value, message.Response); 1169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1186switch (message.Response.Status) 1191using var document = JsonDocument.Parse(message.Response.ContentStream); 1193return Response.FromValue(value, message.Response); 1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\DeletedApplicationsRestOperations.cs (38)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 152switch (message.Response.Status) 157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 159return Response.FromValue(value, message.Response); 162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 173switch (message.Response.Status) 178using var document = JsonDocument.Parse(message.Response.ContentStream); 180return Response.FromValue(value, message.Response); 183throw _clientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 220return message.Response; 222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 242return message.Response; 244throw _clientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 285return Response.FromValue(value, message.Response); 288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310using var document = JsonDocument.Parse(message.Response.ContentStream); 312return Response.FromValue(value, message.Response); 315throw _clientDiagnostics.CreateRequestFailedException(message.Response); 345switch (message.Response.Status) 350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 352return Response.FromValue(value, message.Response); 355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 372switch (message.Response.Status) 377using var document = JsonDocument.Parse(message.Response.ContentStream); 379return Response.FromValue(value, message.Response); 382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\DomainsRestOperations.cs (16)
80switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 177using var document = JsonDocument.Parse(message.Response.ContentStream); 179return Response.FromValue(value, message.Response); 182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\GroupsRestOperations.cs (126)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 167return message.Response; 169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 191switch (message.Response.Status) 194return message.Response; 196throw _clientDiagnostics.CreateRequestFailedException(message.Response); 240switch (message.Response.Status) 243return message.Response; 245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 270return message.Response; 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 309switch (message.Response.Status) 314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 316return Response.FromValue(value, message.Response); 319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 377switch (message.Response.Status) 382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 384return Response.FromValue(value, message.Response); 387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 398switch (message.Response.Status) 403using var document = JsonDocument.Parse(message.Response.ContentStream); 405return Response.FromValue(value, message.Response); 408throw _clientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 470switch (message.Response.Status) 475using var document = JsonDocument.Parse(message.Response.ContentStream); 477return Response.FromValue(value, message.Response); 480throw _clientDiagnostics.CreateRequestFailedException(message.Response); 514switch (message.Response.Status) 519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 521return Response.FromValue(value, message.Response); 524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 541switch (message.Response.Status) 546using var document = JsonDocument.Parse(message.Response.ContentStream); 548return Response.FromValue(value, message.Response); 551throw _clientDiagnostics.CreateRequestFailedException(message.Response); 585switch (message.Response.Status) 588return message.Response; 590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 656switch (message.Response.Status) 661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 663return Response.FromValue(value, message.Response); 666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 688switch (message.Response.Status) 693using var document = JsonDocument.Parse(message.Response.ContentStream); 695return Response.FromValue(value, message.Response); 698throw _clientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 740return Response.FromValue(value, message.Response); 743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 765using var document = JsonDocument.Parse(message.Response.ContentStream); 767return Response.FromValue(value, message.Response); 770throw _clientDiagnostics.CreateRequestFailedException(message.Response); 814switch (message.Response.Status) 817return message.Response; 819throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 841switch (message.Response.Status) 844return message.Response; 846throw _clientDiagnostics.CreateRequestFailedException(message.Response); 887switch (message.Response.Status) 890return message.Response; 892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 914switch (message.Response.Status) 917return message.Response; 919throw _clientDiagnostics.CreateRequestFailedException(message.Response); 953switch (message.Response.Status) 958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 960return Response.FromValue(value, message.Response); 963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 980switch (message.Response.Status) 985using var document = JsonDocument.Parse(message.Response.ContentStream); 987return Response.FromValue(value, message.Response); 990throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1024switch (message.Response.Status) 1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1031return Response.FromValue(value, message.Response); 1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051switch (message.Response.Status) 1056using var document = JsonDocument.Parse(message.Response.ContentStream); 1058return Response.FromValue(value, message.Response); 1061throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1096switch (message.Response.Status) 1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1103return Response.FromValue(value, message.Response); 1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1128switch (message.Response.Status) 1133using var document = JsonDocument.Parse(message.Response.ContentStream); 1135return Response.FromValue(value, message.Response); 1138throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1168switch (message.Response.Status) 1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1175return Response.FromValue(value, message.Response); 1178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1195switch (message.Response.Status) 1200using var document = JsonDocument.Parse(message.Response.ContentStream); 1202return Response.FromValue(value, message.Response); 1205throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1235switch (message.Response.Status) 1240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1242return Response.FromValue(value, message.Response); 1245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1262switch (message.Response.Status) 1267using var document = JsonDocument.Parse(message.Response.ContentStream); 1269return Response.FromValue(value, message.Response); 1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\OAuth2PermissionGrantRestOperations.cs (38)
80switch (message.Response.Status) 85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 87return Response.FromValue(value, message.Response); 90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 101switch (message.Response.Status) 106using var document = JsonDocument.Parse(message.Response.ContentStream); 108return Response.FromValue(value, message.Response); 111throw _clientDiagnostics.CreateRequestFailedException(message.Response); 145switch (message.Response.Status) 150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 152return Response.FromValue(value, message.Response); 155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166switch (message.Response.Status) 171using var document = JsonDocument.Parse(message.Response.ContentStream); 173return Response.FromValue(value, message.Response); 176throw _clientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 213return message.Response; 215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 235return message.Response; 237throw _clientDiagnostics.CreateRequestFailedException(message.Response); 271switch (message.Response.Status) 276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 278return Response.FromValue(value, message.Response); 281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308throw _clientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 370using var document = JsonDocument.Parse(message.Response.ContentStream); 372return Response.FromValue(value, message.Response); 375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\ObjectsRestOperations.cs (24)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 157switch (message.Response.Status) 162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 164return Response.FromValue(value, message.Response); 167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 189using var document = JsonDocument.Parse(message.Response.ContentStream); 191return Response.FromValue(value, message.Response); 194throw _clientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 231return Response.FromValue(value, message.Response); 234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\ServicePrincipalsRestOperations.cs (96)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 228switch (message.Response.Status) 231return message.Response; 233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 258return message.Response; 260throw _clientDiagnostics.CreateRequestFailedException(message.Response); 294switch (message.Response.Status) 297return message.Response; 299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 319return message.Response; 321throw _clientDiagnostics.CreateRequestFailedException(message.Response); 355switch (message.Response.Status) 360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 362return Response.FromValue(value, message.Response); 365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 387using var document = JsonDocument.Parse(message.Response.ContentStream); 389return Response.FromValue(value, message.Response); 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 454switch (message.Response.Status) 459using var document = JsonDocument.Parse(message.Response.ContentStream); 461return Response.FromValue(value, message.Response); 464throw _clientDiagnostics.CreateRequestFailedException(message.Response); 499switch (message.Response.Status) 504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 506return Response.FromValue(value, message.Response); 509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 531using var document = JsonDocument.Parse(message.Response.ContentStream); 533return Response.FromValue(value, message.Response); 536throw _clientDiagnostics.CreateRequestFailedException(message.Response); 580switch (message.Response.Status) 583return message.Response; 585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw _clientDiagnostics.CreateRequestFailedException(message.Response); 647switch (message.Response.Status) 652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 654return Response.FromValue(value, message.Response); 657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw _clientDiagnostics.CreateRequestFailedException(message.Response); 728switch (message.Response.Status) 731return message.Response; 733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 755switch (message.Response.Status) 758return message.Response; 760throw _clientDiagnostics.CreateRequestFailedException(message.Response); 794switch (message.Response.Status) 799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 801return Response.FromValue(value, message.Response); 804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 821switch (message.Response.Status) 826using var document = JsonDocument.Parse(message.Response.ContentStream); 828return Response.FromValue(value, message.Response); 831throw _clientDiagnostics.CreateRequestFailedException(message.Response); 866switch (message.Response.Status) 871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 873return Response.FromValue(value, message.Response); 876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 898switch (message.Response.Status) 903using var document = JsonDocument.Parse(message.Response.ContentStream); 905return Response.FromValue(value, message.Response); 908throw _clientDiagnostics.CreateRequestFailedException(message.Response); 938switch (message.Response.Status) 943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 945return Response.FromValue(value, message.Response); 948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 965switch (message.Response.Status) 970using var document = JsonDocument.Parse(message.Response.ContentStream); 972return Response.FromValue(value, message.Response); 975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\SignedInUserRestOperations.cs (32)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 131switch (message.Response.Status) 136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 138return Response.FromValue(value, message.Response); 141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw _clientDiagnostics.CreateRequestFailedException(message.Response); 195switch (message.Response.Status) 200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 202return Response.FromValue(value, message.Response); 205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232throw _clientDiagnostics.CreateRequestFailedException(message.Response); 262switch (message.Response.Status) 267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 269return Response.FromValue(value, message.Response); 272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294using var document = JsonDocument.Parse(message.Response.ContentStream); 296return Response.FromValue(value, message.Response); 299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\UsersRestOperations.cs (60)
86switch (message.Response.Status) 91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 93return Response.FromValue(value, message.Response); 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 113switch (message.Response.Status) 118using var document = JsonDocument.Parse(message.Response.ContentStream); 120return Response.FromValue(value, message.Response); 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175switch (message.Response.Status) 180using var document = JsonDocument.Parse(message.Response.ContentStream); 182return Response.FromValue(value, message.Response); 185throw _clientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 329return message.Response; 331throw _clientDiagnostics.CreateRequestFailedException(message.Response); 365switch (message.Response.Status) 368return message.Response; 370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw _clientDiagnostics.CreateRequestFailedException(message.Response); 436switch (message.Response.Status) 441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 443return Response.FromValue(value, message.Response); 446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 468switch (message.Response.Status) 473using var document = JsonDocument.Parse(message.Response.ContentStream); 475return Response.FromValue(value, message.Response); 478throw _clientDiagnostics.CreateRequestFailedException(message.Response); 512switch (message.Response.Status) 517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 519return Response.FromValue(value, message.Response); 522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 539switch (message.Response.Status) 544using var document = JsonDocument.Parse(message.Response.ContentStream); 546return Response.FromValue(value, message.Response); 549throw _clientDiagnostics.CreateRequestFailedException(message.Response); 579switch (message.Response.Status) 584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 586return Response.FromValue(value, message.Response); 589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.MachineLearningServices (850)
Generated\AzureMachineLearningWorkspacesRestOperations.cs (16)
75switch (message.Response.Status) 80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 82return Response.FromValue(value, message.Response); 85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 95switch (message.Response.Status) 100using var document = JsonDocument.Parse(message.Response.ContentStream); 102return Response.FromValue(value, message.Response); 105throw _clientDiagnostics.CreateRequestFailedException(message.Response); 135switch (message.Response.Status) 140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 142return Response.FromValue(value, message.Response); 145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 162switch (message.Response.Status) 167using var document = JsonDocument.Parse(message.Response.ContentStream); 169return Response.FromValue(value, message.Response); 172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CodeContainersRestOperations.cs (38)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 511using var document = JsonDocument.Parse(message.Response.ContentStream); 513return Response.FromValue(value, message.Response); 516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CodeVersionsRestOperations.cs (38)
112switch (message.Response.Status) 118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 120return Response.FromValue(value, message.Response); 123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 156switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw _clientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274throw _clientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 333return message.Response; 335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 371return message.Response; 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 521switch (message.Response.Status) 526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 528return Response.FromValue(value, message.Response); 531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataContainersRestOperations.cs (38)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 511using var document = JsonDocument.Parse(message.Response.ContentStream); 513return Response.FromValue(value, message.Response); 516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatastoresRestOperations.cs (46)
127switch (message.Response.Status) 132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 134return Response.FromValue(value, message.Response); 137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166switch (message.Response.Status) 171using var document = JsonDocument.Parse(message.Response.ContentStream); 173return Response.FromValue(value, message.Response); 176throw _clientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 228return message.Response; 230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 261return message.Response; 263throw _clientDiagnostics.CreateRequestFailedException(message.Response); 311switch (message.Response.Status) 316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 318return Response.FromValue(value, message.Response); 321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 348switch (message.Response.Status) 353using var document = JsonDocument.Parse(message.Response.ContentStream); 355return Response.FromValue(value, message.Response); 358throw _clientDiagnostics.CreateRequestFailedException(message.Response); 415switch (message.Response.Status) 421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 423return Response.FromValue(value, message.Response); 426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 458switch (message.Response.Status) 464using var document = JsonDocument.Parse(message.Response.ContentStream); 466return Response.FromValue(value, message.Response); 469throw _clientDiagnostics.CreateRequestFailedException(message.Response); 518switch (message.Response.Status) 523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 525return Response.FromValue(value, message.Response); 528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 555switch (message.Response.Status) 560using var document = JsonDocument.Parse(message.Response.ContentStream); 562return Response.FromValue(value, message.Response); 565throw _clientDiagnostics.CreateRequestFailedException(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return Response.FromValue(value, message.Response); 622throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 656switch (message.Response.Status) 661using var document = JsonDocument.Parse(message.Response.ContentStream); 663return Response.FromValue(value, message.Response); 666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataVersionsRestOperations.cs (38)
112switch (message.Response.Status) 118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 120return Response.FromValue(value, message.Response); 123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 156switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw _clientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274throw _clientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 333return message.Response; 335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367switch (message.Response.Status) 371return message.Response; 373throw _clientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 434return Response.FromValue(value, message.Response); 437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 521switch (message.Response.Status) 526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 528return Response.FromValue(value, message.Response); 531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 564switch (message.Response.Status) 569using var document = JsonDocument.Parse(message.Response.ContentStream); 571return Response.FromValue(value, message.Response); 574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EnvironmentContainersRestOperations.cs (38)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 335return message.Response; 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422using var document = JsonDocument.Parse(message.Response.ContentStream); 424return Response.FromValue(value, message.Response); 427throw _clientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 511using var document = JsonDocument.Parse(message.Response.ContentStream); 513return Response.FromValue(value, message.Response); 516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EnvironmentSpecificationVersionsRestOperations.cs (38)
111switch (message.Response.Status) 117using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 119return Response.FromValue(value, message.Response); 122throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 160using var document = JsonDocument.Parse(message.Response.ContentStream); 162return Response.FromValue(value, message.Response); 165throw _clientDiagnostics.CreateRequestFailedException(message.Response); 220switch (message.Response.Status) 225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 227return Response.FromValue(value, message.Response); 230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 262switch (message.Response.Status) 267using var document = JsonDocument.Parse(message.Response.ContentStream); 269return Response.FromValue(value, message.Response); 272throw _clientDiagnostics.CreateRequestFailedException(message.Response); 327switch (message.Response.Status) 331return message.Response; 333throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 369return message.Response; 371throw _clientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 441return Response.FromValue(value, message.Response); 444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 473switch (message.Response.Status) 478using var document = JsonDocument.Parse(message.Response.ContentStream); 480return Response.FromValue(value, message.Response); 483throw _clientDiagnostics.CreateRequestFailedException(message.Response); 530switch (message.Response.Status) 535using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 537return Response.FromValue(value, message.Response); 540throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 574switch (message.Response.Status) 579using var document = JsonDocument.Parse(message.Response.ContentStream); 581return Response.FromValue(value, message.Response); 584throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestOperations.cs (50)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250throw _clientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 303return message.Response; 305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 337return message.Response; 339throw _clientDiagnostics.CreateRequestFailedException(message.Response); 386switch (message.Response.Status) 391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 393return Response.FromValue(value, message.Response); 396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424using var document = JsonDocument.Parse(message.Response.ContentStream); 426return Response.FromValue(value, message.Response); 429throw _clientDiagnostics.CreateRequestFailedException(message.Response); 478switch (message.Response.Status) 481return message.Response; 483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 510switch (message.Response.Status) 513return message.Response; 515throw _clientDiagnostics.CreateRequestFailedException(message.Response); 570switch (message.Response.Status) 574return message.Response; 576throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 608switch (message.Response.Status) 612return message.Response; 614throw _clientDiagnostics.CreateRequestFailedException(message.Response); 655switch (message.Response.Status) 660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 662return Response.FromValue(value, message.Response); 665throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 693switch (message.Response.Status) 698using var document = JsonDocument.Parse(message.Response.ContentStream); 700return Response.FromValue(value, message.Response); 703throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LabelingJobsRestOperations.cs (64)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw _clientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 220return Response.FromValue(value, message.Response); 223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252switch (message.Response.Status) 257using var document = JsonDocument.Parse(message.Response.ContentStream); 259return Response.FromValue(value, message.Response); 262throw _clientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 343switch (message.Response.Status) 347return message.Response; 349throw _clientDiagnostics.CreateRequestFailedException(message.Response); 401switch (message.Response.Status) 406using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 408return Response.FromValue(value, message.Response); 411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 435switch (message.Response.Status) 440using var document = JsonDocument.Parse(message.Response.ContentStream); 442return Response.FromValue(value, message.Response); 445throw _clientDiagnostics.CreateRequestFailedException(message.Response); 494switch (message.Response.Status) 497return message.Response; 499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 526switch (message.Response.Status) 529return message.Response; 531throw _clientDiagnostics.CreateRequestFailedException(message.Response); 580switch (message.Response.Status) 583return message.Response; 585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 615return message.Response; 617throw _clientDiagnostics.CreateRequestFailedException(message.Response); 674switch (message.Response.Status) 677return message.Response; 679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 707switch (message.Response.Status) 710return message.Response; 712throw _clientDiagnostics.CreateRequestFailedException(message.Response); 763switch (message.Response.Status) 768using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 770return Response.FromValue(value, message.Response); 773throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 801switch (message.Response.Status) 806using var document = JsonDocument.Parse(message.Response.ContentStream); 808return Response.FromValue(value, message.Response); 811throw _clientDiagnostics.CreateRequestFailedException(message.Response); 853switch (message.Response.Status) 858using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 860return Response.FromValue(value, message.Response); 863throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 892switch (message.Response.Status) 897using var document = JsonDocument.Parse(message.Response.ContentStream); 899return Response.FromValue(value, message.Response); 902throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LinkedServicesRestOperations.cs (30)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128using var document = JsonDocument.Parse(message.Response.ContentStream); 130return Response.FromValue(value, message.Response); 133throw _clientDiagnostics.CreateRequestFailedException(message.Response); 190switch (message.Response.Status) 195using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 197return Response.FromValue(value, message.Response); 200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 237using var document = JsonDocument.Parse(message.Response.ContentStream); 239return Response.FromValue(value, message.Response); 242throw _clientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 327switch (message.Response.Status) 332using var document = JsonDocument.Parse(message.Response.ContentStream); 334return Response.FromValue(value, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 389return message.Response; 391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 418switch (message.Response.Status) 422return message.Response; 424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MachineLearningComputeRestOperations.cs (80)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 134using var document = JsonDocument.Parse(message.Response.ContentStream); 136return Response.FromValue(value, message.Response); 139throw _clientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 224switch (message.Response.Status) 229using var document = JsonDocument.Parse(message.Response.ContentStream); 231return Response.FromValue(value, message.Response); 234throw _clientDiagnostics.CreateRequestFailedException(message.Response); 291var headers = new MachineLearningComputeCreateOrUpdateHeaders(message.Response); 292switch (message.Response.Status) 296return ResponseWithHeaders.FromValue(headers, message.Response); 298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330var headers = new MachineLearningComputeCreateOrUpdateHeaders(message.Response); 331switch (message.Response.Status) 335return ResponseWithHeaders.FromValue(headers, message.Response); 337throw _clientDiagnostics.CreateRequestFailedException(message.Response); 394switch (message.Response.Status) 397return message.Response; 399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 434return message.Response; 436throw _clientDiagnostics.CreateRequestFailedException(message.Response); 486var headers = new MachineLearningComputeDeleteHeaders(message.Response); 487switch (message.Response.Status) 491return ResponseWithHeaders.FromValue(headers, message.Response); 493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 521var headers = new MachineLearningComputeDeleteHeaders(message.Response); 522switch (message.Response.Status) 526return ResponseWithHeaders.FromValue(headers, message.Response); 528throw _clientDiagnostics.CreateRequestFailedException(message.Response); 577switch (message.Response.Status) 582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 584return Response.FromValue(value, message.Response); 587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 614switch (message.Response.Status) 619using var document = JsonDocument.Parse(message.Response.ContentStream); 621return Response.FromValue(value, message.Response); 624throw _clientDiagnostics.CreateRequestFailedException(message.Response); 673switch (message.Response.Status) 678using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 680return Response.FromValue(value, message.Response); 683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 710switch (message.Response.Status) 715using var document = JsonDocument.Parse(message.Response.ContentStream); 717return Response.FromValue(value, message.Response); 720throw _clientDiagnostics.CreateRequestFailedException(message.Response); 769switch (message.Response.Status) 772return message.Response; 774throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 801switch (message.Response.Status) 804return message.Response; 806throw _clientDiagnostics.CreateRequestFailedException(message.Response); 855switch (message.Response.Status) 858return message.Response; 860throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 887switch (message.Response.Status) 890return message.Response; 892throw _clientDiagnostics.CreateRequestFailedException(message.Response); 941switch (message.Response.Status) 944return message.Response; 946throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 973switch (message.Response.Status) 976return message.Response; 978throw _clientDiagnostics.CreateRequestFailedException(message.Response); 1019switch (message.Response.Status) 1024using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1026return Response.FromValue(value, message.Response); 1029throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1057switch (message.Response.Status) 1062using var document = JsonDocument.Parse(message.Response.ContentStream); 1064return Response.FromValue(value, message.Response); 1067throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MachineLearningServiceRestOperations.cs (38)
136switch (message.Response.Status) 141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 143return Response.FromValue(value, message.Response); 146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 177switch (message.Response.Status) 182using var document = JsonDocument.Parse(message.Response.ContentStream); 184return Response.FromValue(value, message.Response); 187throw _clientDiagnostics.CreateRequestFailedException(message.Response); 240switch (message.Response.Status) 245using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 247return Response.FromValue(value, message.Response); 250throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 278switch (message.Response.Status) 283using var document = JsonDocument.Parse(message.Response.ContentStream); 285return Response.FromValue(value, message.Response); 288throw _clientDiagnostics.CreateRequestFailedException(message.Response); 336switch (message.Response.Status) 340return message.Response; 342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 369switch (message.Response.Status) 373return message.Response; 375throw _clientDiagnostics.CreateRequestFailedException(message.Response); 432var headers = new MachineLearningServiceCreateOrUpdateHeaders(message.Response); 433switch (message.Response.Status) 437return ResponseWithHeaders.FromValue(headers, message.Response); 439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 471var headers = new MachineLearningServiceCreateOrUpdateHeaders(message.Response); 472switch (message.Response.Status) 476return ResponseWithHeaders.FromValue(headers, message.Response); 478throw _clientDiagnostics.CreateRequestFailedException(message.Response); 527switch (message.Response.Status) 532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 534return Response.FromValue(value, message.Response); 537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 573switch (message.Response.Status) 578using var document = JsonDocument.Parse(message.Response.ContentStream); 580return Response.FromValue(value, message.Response); 583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelContainersRestOperations.cs (38)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140using var document = JsonDocument.Parse(message.Response.ContentStream); 142return Response.FromValue(value, message.Response); 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251throw _clientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 304using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 306return Response.FromValue(value, message.Response); 309throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 336switch (message.Response.Status) 341using var document = JsonDocument.Parse(message.Response.ContentStream); 343return Response.FromValue(value, message.Response); 346throw _clientDiagnostics.CreateRequestFailedException(message.Response); 394switch (message.Response.Status) 398return message.Response; 400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 431return message.Response; 433throw _clientDiagnostics.CreateRequestFailedException(message.Response); 475switch (message.Response.Status) 480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 482return Response.FromValue(value, message.Response); 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelVersionsRestOperations.cs (38)
143switch (message.Response.Status) 148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 150return Response.FromValue(value, message.Response); 153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 189switch (message.Response.Status) 194using var document = JsonDocument.Parse(message.Response.ContentStream); 196return Response.FromValue(value, message.Response); 199throw _clientDiagnostics.CreateRequestFailedException(message.Response); 262switch (message.Response.Status) 268using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 270return Response.FromValue(value, message.Response); 273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 306switch (message.Response.Status) 312using var document = JsonDocument.Parse(message.Response.ContentStream); 314return Response.FromValue(value, message.Response); 317throw _clientDiagnostics.CreateRequestFailedException(message.Response); 372switch (message.Response.Status) 377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 379return Response.FromValue(value, message.Response); 382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 414switch (message.Response.Status) 419using var document = JsonDocument.Parse(message.Response.ContentStream); 421return Response.FromValue(value, message.Response); 424throw _clientDiagnostics.CreateRequestFailedException(message.Response); 479switch (message.Response.Status) 483return message.Response; 485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 517switch (message.Response.Status) 521return message.Response; 523throw _clientDiagnostics.CreateRequestFailedException(message.Response); 577switch (message.Response.Status) 582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 584return Response.FromValue(value, message.Response); 587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 628switch (message.Response.Status) 633using var document = JsonDocument.Parse(message.Response.ContentStream); 635return Response.FromValue(value, message.Response); 638throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebooksRestOperations.cs (14)
90switch (message.Response.Status) 94return message.Response; 96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 117switch (message.Response.Status) 121return message.Response; 123throw _clientDiagnostics.CreateRequestFailedException(message.Response); 164switch (message.Response.Status) 169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 171return Response.FromValue(value, message.Response); 174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 195switch (message.Response.Status) 200using var document = JsonDocument.Parse(message.Response.ContentStream); 202return Response.FromValue(value, message.Response); 205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateEndpointConnectionsRestOperations.cs (22)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144throw _clientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 208return Response.FromValue(value, message.Response); 211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 243switch (message.Response.Status) 248using var document = JsonDocument.Parse(message.Response.ContentStream); 250return Response.FromValue(value, message.Response); 253throw _clientDiagnostics.CreateRequestFailedException(message.Response); 301switch (message.Response.Status) 305return message.Response; 307throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 338return message.Response; 340throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateLinkResourcesRestOperations.cs (8)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128using var document = JsonDocument.Parse(message.Response.ContentStream); 130return Response.FromValue(value, message.Response); 133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QuotasRestOperations.cs (24)
93switch (message.Response.Status) 98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 100return Response.FromValue(value, message.Response); 103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 125switch (message.Response.Status) 130using var document = JsonDocument.Parse(message.Response.ContentStream); 132return Response.FromValue(value, message.Response); 135throw _clientDiagnostics.CreateRequestFailedException(message.Response); 170switch (message.Response.Status) 175using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 177return Response.FromValue(value, message.Response); 180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207throw _clientDiagnostics.CreateRequestFailedException(message.Response); 242switch (message.Response.Status) 247using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 249return Response.FromValue(value, message.Response); 252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 274switch (message.Response.Status) 279using var document = JsonDocument.Parse(message.Response.ContentStream); 281return Response.FromValue(value, message.Response); 284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations.cs (8)
66switch (message.Response.Status) 71using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 73return Response.FromValue(value, message.Response); 76throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 86switch (message.Response.Status) 91using var document = JsonDocument.Parse(message.Response.ContentStream); 93return Response.FromValue(value, message.Response); 96throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UsagesRestOperations.cs (16)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw _clientDiagnostics.CreateRequestFailedException(message.Response); 156switch (message.Response.Status) 161using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 163return Response.FromValue(value, message.Response); 166throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 188switch (message.Response.Status) 193using var document = JsonDocument.Parse(message.Response.ContentStream); 195return Response.FromValue(value, message.Response); 198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachineSizesRestOperations.cs (8)
84switch (message.Response.Status) 89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 91return Response.FromValue(value, message.Response); 94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 111switch (message.Response.Status) 116using var document = JsonDocument.Parse(message.Response.ContentStream); 118return Response.FromValue(value, message.Response); 121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceConnectionsRestOperations.cs (30)
101switch (message.Response.Status) 106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 108return Response.FromValue(value, message.Response); 111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140using var document = JsonDocument.Parse(message.Response.ContentStream); 142return Response.FromValue(value, message.Response); 145throw _clientDiagnostics.CreateRequestFailedException(message.Response); 202switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw _clientDiagnostics.CreateRequestFailedException(message.Response); 302switch (message.Response.Status) 307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 309return Response.FromValue(value, message.Response); 312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 339switch (message.Response.Status) 344using var document = JsonDocument.Parse(message.Response.ContentStream); 346return Response.FromValue(value, message.Response); 349throw _clientDiagnostics.CreateRequestFailedException(message.Response); 397switch (message.Response.Status) 401return message.Response; 403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 434return message.Response; 436throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceFeaturesRestOperations.cs (16)
91switch (message.Response.Status) 96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 98return Response.FromValue(value, message.Response); 101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128using var document = JsonDocument.Parse(message.Response.ContentStream); 130return Response.FromValue(value, message.Response); 133throw _clientDiagnostics.CreateRequestFailedException(message.Response); 173switch (message.Response.Status) 178using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 180return Response.FromValue(value, message.Response); 183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210switch (message.Response.Status) 215using var document = JsonDocument.Parse(message.Response.ContentStream); 217return Response.FromValue(value, message.Response); 220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspacesRestOperations.cs (74)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132throw _clientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187return message.Response; 189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221return message.Response; 223throw _clientDiagnostics.CreateRequestFailedException(message.Response); 264switch (message.Response.Status) 269return message.Response; 271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 298return message.Response; 300throw _clientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 357return Response.FromValue(value, message.Response); 360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 392using var document = JsonDocument.Parse(message.Response.ContentStream); 394return Response.FromValue(value, message.Response); 397throw _clientDiagnostics.CreateRequestFailedException(message.Response); 437switch (message.Response.Status) 442using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 444return Response.FromValue(value, message.Response); 447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 465switch (message.Response.Status) 470using var document = JsonDocument.Parse(message.Response.ContentStream); 472return Response.FromValue(value, message.Response); 475throw _clientDiagnostics.CreateRequestFailedException(message.Response); 517switch (message.Response.Status) 522using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 524return Response.FromValue(value, message.Response); 527throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 549switch (message.Response.Status) 554using var document = JsonDocument.Parse(message.Response.ContentStream); 556return Response.FromValue(value, message.Response); 559throw _clientDiagnostics.CreateRequestFailedException(message.Response); 601switch (message.Response.Status) 604return message.Response; 606throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 628switch (message.Response.Status) 631return message.Response; 633throw _clientDiagnostics.CreateRequestFailedException(message.Response); 664switch (message.Response.Status) 669using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 671return Response.FromValue(value, message.Response); 674throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 685switch (message.Response.Status) 690using var document = JsonDocument.Parse(message.Response.ContentStream); 692return Response.FromValue(value, message.Response); 695throw _clientDiagnostics.CreateRequestFailedException(message.Response); 731switch (message.Response.Status) 736using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 738return Response.FromValue(value, message.Response); 741throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 764switch (message.Response.Status) 769using var document = JsonDocument.Parse(message.Response.ContentStream); 771return Response.FromValue(value, message.Response); 774throw _clientDiagnostics.CreateRequestFailedException(message.Response); 805switch (message.Response.Status) 810using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 812return Response.FromValue(value, message.Response); 815throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 833switch (message.Response.Status) 838using var document = JsonDocument.Parse(message.Response.ContentStream); 840return Response.FromValue(value, message.Response); 843throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\ArmOperationHelpers.cs (2)
202return message.Response; 224return message.Response;
Azure.ResourceManager.Network (4895)
Generated\RestOperations\ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 205switch (message.Response.Status) 209return message.Response; 211throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 248switch (message.Response.Status) 252return message.Response; 254throw ClientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318return Response.FromValue((ApplicationGatewayPrivateEndpointConnectionData)null, message.Response); 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357using var document = JsonDocument.Parse(message.Response.ContentStream); 359return Response.FromValue(value, message.Response); 362return Response.FromValue((ApplicationGatewayPrivateEndpointConnectionData)null, message.Response); 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationGatewayPrivateLinkResourcesRestOperations.cs (16)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 190return Response.FromValue(value, message.Response); 193throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 225switch (message.Response.Status) 230using var document = JsonDocument.Parse(message.Response.ContentStream); 232return Response.FromValue(value, message.Response); 235throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationGatewaysRestOperations.cs (154)
90switch (message.Response.Status) 95return message.Response; 97throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 124switch (message.Response.Status) 129return message.Response; 131throw ClientDiagnostics.CreateRequestFailedException(message.Response); 178switch (message.Response.Status) 183using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 185return Response.FromValue(value, message.Response); 188return Response.FromValue((ApplicationGatewayData)null, message.Response); 190throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 217switch (message.Response.Status) 222using var document = JsonDocument.Parse(message.Response.ContentStream); 224return Response.FromValue(value, message.Response); 227return Response.FromValue((ApplicationGatewayData)null, message.Response); 229throw ClientDiagnostics.CreateRequestFailedException(message.Response); 285switch (message.Response.Status) 289return message.Response; 291throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 323switch (message.Response.Status) 327return message.Response; 329throw ClientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 392return Response.FromValue(value, message.Response); 395throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 432using var document = JsonDocument.Parse(message.Response.ContentStream); 434return Response.FromValue(value, message.Response); 437throw ClientDiagnostics.CreateRequestFailedException(message.Response); 478switch (message.Response.Status) 483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 485return Response.FromValue(value, message.Response); 488throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 510switch (message.Response.Status) 515using var document = JsonDocument.Parse(message.Response.ContentStream); 517return Response.FromValue(value, message.Response); 520throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 581switch (message.Response.Status) 586using var document = JsonDocument.Parse(message.Response.ContentStream); 588return Response.FromValue(value, message.Response); 591throw ClientDiagnostics.CreateRequestFailedException(message.Response); 639switch (message.Response.Status) 643return message.Response; 645throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 672switch (message.Response.Status) 676return message.Response; 678throw ClientDiagnostics.CreateRequestFailedException(message.Response); 726switch (message.Response.Status) 730return message.Response; 732throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 759switch (message.Response.Status) 763return message.Response; 765throw ClientDiagnostics.CreateRequestFailedException(message.Response); 818switch (message.Response.Status) 822return message.Response; 824throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 852switch (message.Response.Status) 856return message.Response; 858throw ClientDiagnostics.CreateRequestFailedException(message.Response); 920switch (message.Response.Status) 924return message.Response; 926throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 959switch (message.Response.Status) 963return message.Response; 965throw ClientDiagnostics.CreateRequestFailedException(message.Response); 999switch (message.Response.Status) 1004using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1011return Response.FromValue(value, message.Response); 1014throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1031switch (message.Response.Status) 1036using var document = JsonDocument.Parse(message.Response.ContentStream); 1043return Response.FromValue(value, message.Response); 1046throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1080switch (message.Response.Status) 1085using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1092return Response.FromValue(value, message.Response); 1095throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1112switch (message.Response.Status) 1117using var document = JsonDocument.Parse(message.Response.ContentStream); 1124return Response.FromValue(value, message.Response); 1127throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1161switch (message.Response.Status) 1166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1173return Response.FromValue(value, message.Response); 1176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1193switch (message.Response.Status) 1198using var document = JsonDocument.Parse(message.Response.ContentStream); 1205return Response.FromValue(value, message.Response); 1208throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1242switch (message.Response.Status) 1247using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1249return Response.FromValue(value, message.Response); 1252throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1269switch (message.Response.Status) 1274using var document = JsonDocument.Parse(message.Response.ContentStream); 1276return Response.FromValue(value, message.Response); 1279throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1313switch (message.Response.Status) 1318using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1320return Response.FromValue(value, message.Response); 1323return Response.FromValue((ApplicationGatewayAvailableSslOptionsData)null, message.Response); 1325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1342switch (message.Response.Status) 1347using var document = JsonDocument.Parse(message.Response.ContentStream); 1349return Response.FromValue(value, message.Response); 1352return Response.FromValue((ApplicationGatewayAvailableSslOptionsData)null, message.Response); 1354throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1388switch (message.Response.Status) 1393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1395return Response.FromValue(value, message.Response); 1398throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1415switch (message.Response.Status) 1420using var document = JsonDocument.Parse(message.Response.ContentStream); 1422return Response.FromValue(value, message.Response); 1425throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1465switch (message.Response.Status) 1470using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1472return Response.FromValue(value, message.Response); 1475return Response.FromValue((ApplicationGatewaySslPredefinedPolicyData)null, message.Response); 1477throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1499switch (message.Response.Status) 1504using var document = JsonDocument.Parse(message.Response.ContentStream); 1506return Response.FromValue(value, message.Response); 1509return Response.FromValue((ApplicationGatewaySslPredefinedPolicyData)null, message.Response); 1511throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1552switch (message.Response.Status) 1557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1559return Response.FromValue(value, message.Response); 1562throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1589switch (message.Response.Status) 1594using var document = JsonDocument.Parse(message.Response.ContentStream); 1596return Response.FromValue(value, message.Response); 1599throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1635switch (message.Response.Status) 1640using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1642return Response.FromValue(value, message.Response); 1645throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1667switch (message.Response.Status) 1672using var document = JsonDocument.Parse(message.Response.ContentStream); 1674return Response.FromValue(value, message.Response); 1677throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1713switch (message.Response.Status) 1718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1720return Response.FromValue(value, message.Response); 1723throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1745switch (message.Response.Status) 1750using var document = JsonDocument.Parse(message.Response.ContentStream); 1752return Response.FromValue(value, message.Response); 1755throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationSecurityGroupsRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((ApplicationSecurityGroupData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((ApplicationSecurityGroupData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 470switch (message.Response.Status) 475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 477return Response.FromValue(value, message.Response); 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 504return Response.FromValue(value, message.Response); 507throw ClientDiagnostics.CreateRequestFailedException(message.Response); 548switch (message.Response.Status) 553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 555return Response.FromValue(value, message.Response); 558throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 626switch (message.Response.Status) 631using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 633return Response.FromValue(value, message.Response); 636throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw ClientDiagnostics.CreateRequestFailedException(message.Response); 709switch (message.Response.Status) 714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 716return Response.FromValue(value, message.Response); 719throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableDelegationsRestOperations.cs (16)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 203switch (message.Response.Status) 208using var document = JsonDocument.Parse(message.Response.ContentStream); 210return Response.FromValue(value, message.Response); 213throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableEndpointServicesRestOperations.cs (16)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 203switch (message.Response.Status) 208using var document = JsonDocument.Parse(message.Response.ContentStream); 210return Response.FromValue(value, message.Response); 213throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailablePrivateEndpointTypesRestOperations.cs (32)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 173switch (message.Response.Status) 178using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 180return Response.FromValue(value, message.Response); 183throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210switch (message.Response.Status) 215using var document = JsonDocument.Parse(message.Response.ContentStream); 217return Response.FromValue(value, message.Response); 220throw ClientDiagnostics.CreateRequestFailedException(message.Response); 261switch (message.Response.Status) 266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 268return Response.FromValue(value, message.Response); 271throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308throw ClientDiagnostics.CreateRequestFailedException(message.Response); 354switch (message.Response.Status) 359using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 361return Response.FromValue(value, message.Response); 364throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 396switch (message.Response.Status) 401using var document = JsonDocument.Parse(message.Response.ContentStream); 403return Response.FromValue(value, message.Response); 406throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableResourceGroupDelegationsRestOperations.cs (16)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 190return Response.FromValue(value, message.Response); 193throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 225switch (message.Response.Status) 230using var document = JsonDocument.Parse(message.Response.ContentStream); 232return Response.FromValue(value, message.Response); 235throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableServiceAliasesRestOperations.cs (32)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 173switch (message.Response.Status) 178using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 180return Response.FromValue(value, message.Response); 183throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210switch (message.Response.Status) 215using var document = JsonDocument.Parse(message.Response.ContentStream); 217return Response.FromValue(value, message.Response); 220throw ClientDiagnostics.CreateRequestFailedException(message.Response); 261switch (message.Response.Status) 266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 268return Response.FromValue(value, message.Response); 271throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 303using var document = JsonDocument.Parse(message.Response.ContentStream); 305return Response.FromValue(value, message.Response); 308throw ClientDiagnostics.CreateRequestFailedException(message.Response); 354switch (message.Response.Status) 359using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 361return Response.FromValue(value, message.Response); 364throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 396switch (message.Response.Status) 401using var document = JsonDocument.Parse(message.Response.ContentStream); 403return Response.FromValue(value, message.Response); 406throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AzureFirewallFqdnTagsRestOperations.cs (16)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 149switch (message.Response.Status) 154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 156return Response.FromValue(value, message.Response); 159throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 181switch (message.Response.Status) 186using var document = JsonDocument.Parse(message.Response.ContentStream); 188return Response.FromValue(value, message.Response); 191throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AzureFirewallsRestOperations.cs (60)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((AzureFirewallData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((AzureFirewallData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 388return message.Response; 390throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422switch (message.Response.Status) 426return message.Response; 428throw ClientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw ClientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 577using var document = JsonDocument.Parse(message.Response.ContentStream); 579return Response.FromValue(value, message.Response); 582throw ClientDiagnostics.CreateRequestFailedException(message.Response); 623switch (message.Response.Status) 628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 630return Response.FromValue(value, message.Response); 633throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 660switch (message.Response.Status) 665using var document = JsonDocument.Parse(message.Response.ContentStream); 667return Response.FromValue(value, message.Response); 670throw ClientDiagnostics.CreateRequestFailedException(message.Response); 706switch (message.Response.Status) 711using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 713return Response.FromValue(value, message.Response); 716throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 738switch (message.Response.Status) 743using var document = JsonDocument.Parse(message.Response.ContentStream); 745return Response.FromValue(value, message.Response); 748throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BastionHostsRestOperations.cs (54)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((BastionHostData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((BastionHostData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 362switch (message.Response.Status) 367using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 369return Response.FromValue(value, message.Response); 372throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 389switch (message.Response.Status) 394using var document = JsonDocument.Parse(message.Response.ContentStream); 396return Response.FromValue(value, message.Response); 399throw ClientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 447return Response.FromValue(value, message.Response); 450throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 472switch (message.Response.Status) 477using var document = JsonDocument.Parse(message.Response.ContentStream); 479return Response.FromValue(value, message.Response); 482throw ClientDiagnostics.CreateRequestFailedException(message.Response); 518switch (message.Response.Status) 523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 525return Response.FromValue(value, message.Response); 528throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 550switch (message.Response.Status) 555using var document = JsonDocument.Parse(message.Response.ContentStream); 557return Response.FromValue(value, message.Response); 560throw ClientDiagnostics.CreateRequestFailedException(message.Response); 601switch (message.Response.Status) 606using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 608return Response.FromValue(value, message.Response); 611throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 638switch (message.Response.Status) 643using var document = JsonDocument.Parse(message.Response.ContentStream); 645return Response.FromValue(value, message.Response); 648throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BgpServiceCommunitiesRestOperations.cs (16)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 149switch (message.Response.Status) 154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 156return Response.FromValue(value, message.Response); 159throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 181switch (message.Response.Status) 186using var document = JsonDocument.Parse(message.Response.ContentStream); 188return Response.FromValue(value, message.Response); 191throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ConnectionMonitorsRestOperations.cs (56)
110switch (message.Response.Status) 114return message.Response; 116throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 154switch (message.Response.Status) 158return message.Response; 160throw ClientDiagnostics.CreateRequestFailedException(message.Response); 214switch (message.Response.Status) 219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 221return Response.FromValue(value, message.Response); 224return Response.FromValue((ConnectionMonitorData)null, message.Response); 226throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 263using var document = JsonDocument.Parse(message.Response.ContentStream); 265return Response.FromValue(value, message.Response); 268return Response.FromValue((ConnectionMonitorData)null, message.Response); 270throw ClientDiagnostics.CreateRequestFailedException(message.Response); 324switch (message.Response.Status) 328return message.Response; 330throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 362switch (message.Response.Status) 366return message.Response; 368throw ClientDiagnostics.CreateRequestFailedException(message.Response); 431switch (message.Response.Status) 436using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 438return Response.FromValue(value, message.Response); 441throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 478switch (message.Response.Status) 483using var document = JsonDocument.Parse(message.Response.ContentStream); 485return Response.FromValue(value, message.Response); 488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 543switch (message.Response.Status) 547return message.Response; 549throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 581switch (message.Response.Status) 585return message.Response; 587throw ClientDiagnostics.CreateRequestFailedException(message.Response); 642switch (message.Response.Status) 646return message.Response; 648throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 680switch (message.Response.Status) 684return message.Response; 686throw ClientDiagnostics.CreateRequestFailedException(message.Response); 741switch (message.Response.Status) 745return message.Response; 747throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 779switch (message.Response.Status) 783return message.Response; 785throw ClientDiagnostics.CreateRequestFailedException(message.Response); 833switch (message.Response.Status) 838using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 840return Response.FromValue(value, message.Response); 843throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 870switch (message.Response.Status) 875using var document = JsonDocument.Parse(message.Response.ContentStream); 877return Response.FromValue(value, message.Response); 880throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CustomIPPrefixesRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((CustomIpPrefixData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((CustomIpPrefixData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 639return Response.FromValue(value, message.Response); 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DdosCustomPoliciesRestOperations.cs (30)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((DdosCustomPolicyData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((DdosCustomPolicyData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DdosProtectionPlansRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((DdosProtectionPlanData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((DdosProtectionPlanData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 470switch (message.Response.Status) 475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 477return Response.FromValue(value, message.Response); 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 504return Response.FromValue(value, message.Response); 507throw ClientDiagnostics.CreateRequestFailedException(message.Response); 548switch (message.Response.Status) 553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 555return Response.FromValue(value, message.Response); 558throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 626switch (message.Response.Status) 631using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 633return Response.FromValue(value, message.Response); 636throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw ClientDiagnostics.CreateRequestFailedException(message.Response); 709switch (message.Response.Status) 714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 716return Response.FromValue(value, message.Response); 719throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DefaultSecurityRulesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((SecurityRuleData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((SecurityRuleData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DscpConfigurationRestOperations.cs (54)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194return message.Response; 196throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228return message.Response; 230throw ClientDiagnostics.CreateRequestFailedException(message.Response); 277switch (message.Response.Status) 282using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 284return Response.FromValue(value, message.Response); 287return Response.FromValue((DscpConfigurationData)null, message.Response); 289throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 316switch (message.Response.Status) 321using var document = JsonDocument.Parse(message.Response.ContentStream); 323return Response.FromValue(value, message.Response); 326return Response.FromValue((DscpConfigurationData)null, message.Response); 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 369switch (message.Response.Status) 374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 376return Response.FromValue(value, message.Response); 379throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 401switch (message.Response.Status) 406using var document = JsonDocument.Parse(message.Response.ContentStream); 408return Response.FromValue(value, message.Response); 411throw ClientDiagnostics.CreateRequestFailedException(message.Response); 445switch (message.Response.Status) 450using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 452return Response.FromValue(value, message.Response); 455throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 472switch (message.Response.Status) 477using var document = JsonDocument.Parse(message.Response.ContentStream); 479return Response.FromValue(value, message.Response); 482throw ClientDiagnostics.CreateRequestFailedException(message.Response); 523switch (message.Response.Status) 528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 530return Response.FromValue(value, message.Response); 533throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 560switch (message.Response.Status) 565using var document = JsonDocument.Parse(message.Response.ContentStream); 567return Response.FromValue(value, message.Response); 570throw ClientDiagnostics.CreateRequestFailedException(message.Response); 606switch (message.Response.Status) 611using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 613return Response.FromValue(value, message.Response); 616throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 638switch (message.Response.Status) 643using var document = JsonDocument.Parse(message.Response.ContentStream); 645return Response.FromValue(value, message.Response); 648throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitAuthorizationsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((ExpressRouteCircuitAuthorizationData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((ExpressRouteCircuitAuthorizationData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitConnectionsRestOperations.cs (38)
103switch (message.Response.Status) 108return message.Response; 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 147switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 222return Response.FromValue(value, message.Response); 225return Response.FromValue((ExpressRouteCircuitConnectionData)null, message.Response); 227throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274return Response.FromValue((ExpressRouteCircuitConnectionData)null, message.Response); 276throw ClientDiagnostics.CreateRequestFailedException(message.Response); 346switch (message.Response.Status) 350return message.Response; 352throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 398return message.Response; 400throw ClientDiagnostics.CreateRequestFailedException(message.Response); 455switch (message.Response.Status) 460using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 462return Response.FromValue(value, message.Response); 465throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 504return Response.FromValue(value, message.Response); 507throw ClientDiagnostics.CreateRequestFailedException(message.Response); 558switch (message.Response.Status) 563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 565return Response.FromValue(value, message.Response); 568throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 605switch (message.Response.Status) 610using var document = JsonDocument.Parse(message.Response.ContentStream); 612return Response.FromValue(value, message.Response); 615throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitPeeringsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((ExpressRouteCircuitPeeringData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((ExpressRouteCircuitPeeringData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitsRestOperations.cs (96)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((ExpressRouteCircuitData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((ExpressRouteCircuitData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 497switch (message.Response.Status) 501return message.Response; 503throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 540switch (message.Response.Status) 544return message.Response; 546throw ClientDiagnostics.CreateRequestFailedException(message.Response); 607switch (message.Response.Status) 611return message.Response; 613throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 650switch (message.Response.Status) 654return message.Response; 656throw ClientDiagnostics.CreateRequestFailedException(message.Response); 717switch (message.Response.Status) 721return message.Response; 723throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 760switch (message.Response.Status) 764return message.Response; 766throw ClientDiagnostics.CreateRequestFailedException(message.Response); 814switch (message.Response.Status) 819using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 821return Response.FromValue(value, message.Response); 824throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 851switch (message.Response.Status) 856using var document = JsonDocument.Parse(message.Response.ContentStream); 858return Response.FromValue(value, message.Response); 861throw ClientDiagnostics.CreateRequestFailedException(message.Response); 916switch (message.Response.Status) 921using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 923return Response.FromValue(value, message.Response); 926throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 958switch (message.Response.Status) 963using var document = JsonDocument.Parse(message.Response.ContentStream); 965return Response.FromValue(value, message.Response); 968throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1009switch (message.Response.Status) 1014using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1016return Response.FromValue(value, message.Response); 1019throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1041switch (message.Response.Status) 1046using var document = JsonDocument.Parse(message.Response.ContentStream); 1048return Response.FromValue(value, message.Response); 1051throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1085switch (message.Response.Status) 1090using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1092return Response.FromValue(value, message.Response); 1095throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1112switch (message.Response.Status) 1117using var document = JsonDocument.Parse(message.Response.ContentStream); 1119return Response.FromValue(value, message.Response); 1122throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1163switch (message.Response.Status) 1168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1170return Response.FromValue(value, message.Response); 1173throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1200switch (message.Response.Status) 1205using var document = JsonDocument.Parse(message.Response.ContentStream); 1207return Response.FromValue(value, message.Response); 1210throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1246switch (message.Response.Status) 1251using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1253return Response.FromValue(value, message.Response); 1256throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1278switch (message.Response.Status) 1283using var document = JsonDocument.Parse(message.Response.ContentStream); 1285return Response.FromValue(value, message.Response); 1288throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteConnectionsRestOperations.cs (30)
105switch (message.Response.Status) 109return message.Response; 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218return Response.FromValue((ExpressRouteConnectionData)null, message.Response); 220throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252switch (message.Response.Status) 257using var document = JsonDocument.Parse(message.Response.ContentStream); 259return Response.FromValue(value, message.Response); 262return Response.FromValue((ExpressRouteConnectionData)null, message.Response); 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323return message.Response; 325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCrossConnectionPeeringsRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196return message.Response; 198throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 235return message.Response; 237throw ClientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301return Response.FromValue((ExpressRouteCrossConnectionPeeringData)null, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345return Response.FromValue((ExpressRouteCrossConnectionPeeringData)null, message.Response); 347throw ClientDiagnostics.CreateRequestFailedException(message.Response); 410switch (message.Response.Status) 414return message.Response; 416throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 457return message.Response; 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCrossConnectionsRestOperations.cs (74)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 250return Response.FromValue(value, message.Response); 253return Response.FromValue((ExpressRouteCrossConnectionData)null, message.Response); 255throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 287using var document = JsonDocument.Parse(message.Response.ContentStream); 289return Response.FromValue(value, message.Response); 292return Response.FromValue((ExpressRouteCrossConnectionData)null, message.Response); 294throw ClientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 353return message.Response; 355throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 390return message.Response; 392throw ClientDiagnostics.CreateRequestFailedException(message.Response); 448switch (message.Response.Status) 453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 455return Response.FromValue(value, message.Response); 458throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 490switch (message.Response.Status) 495using var document = JsonDocument.Parse(message.Response.ContentStream); 497return Response.FromValue(value, message.Response); 500throw ClientDiagnostics.CreateRequestFailedException(message.Response); 561switch (message.Response.Status) 565return message.Response; 567throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 604switch (message.Response.Status) 608return message.Response; 610throw ClientDiagnostics.CreateRequestFailedException(message.Response); 671switch (message.Response.Status) 675return message.Response; 677throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 714switch (message.Response.Status) 718return message.Response; 720throw ClientDiagnostics.CreateRequestFailedException(message.Response); 781switch (message.Response.Status) 785return message.Response; 787throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 824switch (message.Response.Status) 828return message.Response; 830throw ClientDiagnostics.CreateRequestFailedException(message.Response); 866switch (message.Response.Status) 871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 873return Response.FromValue(value, message.Response); 876throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 898switch (message.Response.Status) 903using var document = JsonDocument.Parse(message.Response.ContentStream); 905return Response.FromValue(value, message.Response); 908throw ClientDiagnostics.CreateRequestFailedException(message.Response); 949switch (message.Response.Status) 954using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 956return Response.FromValue(value, message.Response); 959throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 986switch (message.Response.Status) 991using var document = JsonDocument.Parse(message.Response.ContentStream); 993return Response.FromValue(value, message.Response); 996throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteGatewaysRestOperations.cs (44)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 154switch (message.Response.Status) 159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 161return Response.FromValue(value, message.Response); 164throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response); 252switch (message.Response.Status) 256return message.Response; 258throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 290switch (message.Response.Status) 294return message.Response; 296throw ClientDiagnostics.CreateRequestFailedException(message.Response); 352switch (message.Response.Status) 356return message.Response; 358throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 390switch (message.Response.Status) 394return message.Response; 396throw ClientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453return Response.FromValue((ExpressRouteGatewayData)null, message.Response); 455throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482switch (message.Response.Status) 487using var document = JsonDocument.Parse(message.Response.ContentStream); 489return Response.FromValue(value, message.Response); 492return Response.FromValue((ExpressRouteGatewayData)null, message.Response); 494throw ClientDiagnostics.CreateRequestFailedException(message.Response); 541switch (message.Response.Status) 546return message.Response; 548throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 575switch (message.Response.Status) 580return message.Response; 582throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteLinksRestOperations.cs (26)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((ExpressRouteLinkData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((ExpressRouteLinkData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 207return Response.FromValue(value, message.Response); 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRoutePortsLocationsRestOperations.cs (26)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 153switch (message.Response.Status) 158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 160return Response.FromValue(value, message.Response); 163return Response.FromValue((ExpressRoutePortsLocationData)null, message.Response); 165throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 187switch (message.Response.Status) 192using var document = JsonDocument.Parse(message.Response.ContentStream); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((ExpressRoutePortsLocationData)null, message.Response); 199throw ClientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 242return Response.FromValue(value, message.Response); 245throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 272using var document = JsonDocument.Parse(message.Response.ContentStream); 274return Response.FromValue(value, message.Response); 277throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRoutePortsRestOperations.cs (70)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((ExpressRoutePortData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((ExpressRoutePortData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 484return Response.FromValue(value, message.Response); 487throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 514using var document = JsonDocument.Parse(message.Response.ContentStream); 516return Response.FromValue(value, message.Response); 519throw ClientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 647switch (message.Response.Status) 652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 654return Response.FromValue(value, message.Response); 657throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 689switch (message.Response.Status) 694using var document = JsonDocument.Parse(message.Response.ContentStream); 696return Response.FromValue(value, message.Response); 699throw ClientDiagnostics.CreateRequestFailedException(message.Response); 740switch (message.Response.Status) 745using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 747return Response.FromValue(value, message.Response); 750throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 777switch (message.Response.Status) 782using var document = JsonDocument.Parse(message.Response.ContentStream); 784return Response.FromValue(value, message.Response); 787throw ClientDiagnostics.CreateRequestFailedException(message.Response); 823switch (message.Response.Status) 828using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 830return Response.FromValue(value, message.Response); 833throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 855switch (message.Response.Status) 860using var document = JsonDocument.Parse(message.Response.ContentStream); 862return Response.FromValue(value, message.Response); 865throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteServiceProvidersRestOperations.cs (16)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 149switch (message.Response.Status) 154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 156return Response.FromValue(value, message.Response); 159throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 181switch (message.Response.Status) 186using var document = JsonDocument.Parse(message.Response.ContentStream); 188return Response.FromValue(value, message.Response); 191throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FirewallPoliciesRestOperations.cs (54)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((FirewallPolicyData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((FirewallPolicyData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 382return Response.FromValue(value, message.Response); 385throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 407switch (message.Response.Status) 412using var document = JsonDocument.Parse(message.Response.ContentStream); 414return Response.FromValue(value, message.Response); 417throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 458return Response.FromValue(value, message.Response); 461throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 478switch (message.Response.Status) 483using var document = JsonDocument.Parse(message.Response.ContentStream); 485return Response.FromValue(value, message.Response); 488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 529switch (message.Response.Status) 534using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 536return Response.FromValue(value, message.Response); 539throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw ClientDiagnostics.CreateRequestFailedException(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return Response.FromValue(value, message.Response); 622throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644switch (message.Response.Status) 649using var document = JsonDocument.Parse(message.Response.ContentStream); 651return Response.FromValue(value, message.Response); 654throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FirewallPolicyRuleCollectionGroupsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((FirewallPolicyRuleCollectionGroupData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((FirewallPolicyRuleCollectionGroupData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FlowLogsRestOperations.cs (46)
105switch (message.Response.Status) 109return message.Response; 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 217switch (message.Response.Status) 222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 224return Response.FromValue(value, message.Response); 227throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 264switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274throw ClientDiagnostics.CreateRequestFailedException(message.Response); 328switch (message.Response.Status) 333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 335return Response.FromValue(value, message.Response); 338return Response.FromValue((FlowLogData)null, message.Response); 340throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 372switch (message.Response.Status) 377using var document = JsonDocument.Parse(message.Response.ContentStream); 379return Response.FromValue(value, message.Response); 382return Response.FromValue((FlowLogData)null, message.Response); 384throw ClientDiagnostics.CreateRequestFailedException(message.Response); 438switch (message.Response.Status) 442return message.Response; 444throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 480return message.Response; 482throw ClientDiagnostics.CreateRequestFailedException(message.Response); 530switch (message.Response.Status) 535using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 537return Response.FromValue(value, message.Response); 540throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567switch (message.Response.Status) 572using var document = JsonDocument.Parse(message.Response.ContentStream); 574return Response.FromValue(value, message.Response); 577throw ClientDiagnostics.CreateRequestFailedException(message.Response); 623switch (message.Response.Status) 628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 630return Response.FromValue(value, message.Response); 633throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 665switch (message.Response.Status) 670using var document = JsonDocument.Parse(message.Response.ContentStream); 672return Response.FromValue(value, message.Response); 675throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\HubRouteTablesRestOperations.cs (38)
105switch (message.Response.Status) 109return message.Response; 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 215return Response.FromValue(value, message.Response); 218return Response.FromValue((HubRouteTableData)null, message.Response); 220throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252switch (message.Response.Status) 257using var document = JsonDocument.Parse(message.Response.ContentStream); 259return Response.FromValue(value, message.Response); 262return Response.FromValue((HubRouteTableData)null, message.Response); 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323return message.Response; 325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\HubVirtualNetworkConnectionsRestOperations.cs (38)
105switch (message.Response.Status) 109return message.Response; 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 148switch (message.Response.Status) 152return message.Response; 154throw ClientDiagnostics.CreateRequestFailedException(message.Response); 208switch (message.Response.Status) 213return message.Response; 215throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 252return message.Response; 254throw ClientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318return Response.FromValue((HubVirtualNetworkConnectionData)null, message.Response); 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357using var document = JsonDocument.Parse(message.Response.ContentStream); 359return Response.FromValue(value, message.Response); 362return Response.FromValue((HubVirtualNetworkConnectionData)null, message.Response); 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InboundNatRulesRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196return message.Response; 198throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 235return message.Response; 237throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306return Response.FromValue((InboundNatRuleData)null, message.Response); 308throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 341switch (message.Response.Status) 346using var document = JsonDocument.Parse(message.Response.ContentStream); 348return Response.FromValue(value, message.Response); 351return Response.FromValue((InboundNatRuleData)null, message.Response); 353throw ClientDiagnostics.CreateRequestFailedException(message.Response); 416switch (message.Response.Status) 420return message.Response; 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 463return message.Response; 465throw ClientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 558using var document = JsonDocument.Parse(message.Response.ContentStream); 560return Response.FromValue(value, message.Response); 563throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InboundSecurityRuleRestOperations.cs (6)
104switch (message.Response.Status) 108return message.Response; 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 147switch (message.Response.Status) 151return message.Response; 153throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\IpAllocationsRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((IpAllocationData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((IpAllocationData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 639return Response.FromValue(value, message.Response); 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\IpGroupsRestOperations.cs (62)
94switch (message.Response.Status) 99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 101return Response.FromValue(value, message.Response); 104return Response.FromValue((IpGroupData)null, message.Response); 106throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 134switch (message.Response.Status) 139using var document = JsonDocument.Parse(message.Response.ContentStream); 141return Response.FromValue(value, message.Response); 144return Response.FromValue((IpGroupData)null, message.Response); 146throw ClientDiagnostics.CreateRequestFailedException(message.Response); 202switch (message.Response.Status) 206return message.Response; 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 244return message.Response; 246throw ClientDiagnostics.CreateRequestFailedException(message.Response); 302switch (message.Response.Status) 307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 309return Response.FromValue(value, message.Response); 312throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 344switch (message.Response.Status) 349using var document = JsonDocument.Parse(message.Response.ContentStream); 351return Response.FromValue(value, message.Response); 354throw ClientDiagnostics.CreateRequestFailedException(message.Response); 401switch (message.Response.Status) 406return message.Response; 408throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 435switch (message.Response.Status) 440return message.Response; 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 483switch (message.Response.Status) 488using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 490return Response.FromValue(value, message.Response); 493throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw ClientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 637switch (message.Response.Status) 642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 644return Response.FromValue(value, message.Response); 647throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw ClientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 727return Response.FromValue(value, message.Response); 730throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerBackendAddressPoolsRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((BackendAddressPoolData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((BackendAddressPoolData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418return message.Response; 420throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 452switch (message.Response.Status) 457return message.Response; 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerFrontendIPConfigurationsRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((FrontendIPConfigurationData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((FrontendIPConfigurationData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerLoadBalancingRulesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((LoadBalancingRuleData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((LoadBalancingRuleData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerNetworkInterfacesRestOperations.cs (16)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 190return Response.FromValue(value, message.Response); 193throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 225switch (message.Response.Status) 230using var document = JsonDocument.Parse(message.Response.ContentStream); 232return Response.FromValue(value, message.Response); 235throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerOutboundRulesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((OutboundRuleData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((OutboundRuleData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerProbesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((ProbeData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((ProbeData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancersRestOperations.cs (68)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((LoadBalancerData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((LoadBalancerData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 646switch (message.Response.Status) 650return message.Response; 652throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 679switch (message.Response.Status) 683return message.Response; 685throw ClientDiagnostics.CreateRequestFailedException(message.Response); 721switch (message.Response.Status) 726using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 728return Response.FromValue(value, message.Response); 731throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 753switch (message.Response.Status) 758using var document = JsonDocument.Parse(message.Response.ContentStream); 760return Response.FromValue(value, message.Response); 763throw ClientDiagnostics.CreateRequestFailedException(message.Response); 804switch (message.Response.Status) 809using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 811return Response.FromValue(value, message.Response); 814throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 841switch (message.Response.Status) 846using var document = JsonDocument.Parse(message.Response.ContentStream); 848return Response.FromValue(value, message.Response); 851throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LocalNetworkGatewaysRestOperations.cs (46)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((LocalNetworkGatewayData)null, message.Response); 201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228switch (message.Response.Status) 233using var document = JsonDocument.Parse(message.Response.ContentStream); 235return Response.FromValue(value, message.Response); 238return Response.FromValue((LocalNetworkGatewayData)null, message.Response); 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292return message.Response; 294throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 321switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 484return Response.FromValue(value, message.Response); 487throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 514using var document = JsonDocument.Parse(message.Response.ContentStream); 516return Response.FromValue(value, message.Response); 519throw ClientDiagnostics.CreateRequestFailedException(message.Response); 560switch (message.Response.Status) 565using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 567return Response.FromValue(value, message.Response); 570throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 597switch (message.Response.Status) 602using var document = JsonDocument.Parse(message.Response.ContentStream); 604return Response.FromValue(value, message.Response); 607throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NatGatewaysRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((NatGatewayData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((NatGatewayData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295return message.Response; 297throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 334return message.Response; 336throw ClientDiagnostics.CreateRequestFailedException(message.Response); 392switch (message.Response.Status) 397using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 399return Response.FromValue(value, message.Response); 402throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 434switch (message.Response.Status) 439using var document = JsonDocument.Parse(message.Response.ContentStream); 441return Response.FromValue(value, message.Response); 444throw ClientDiagnostics.CreateRequestFailedException(message.Response); 478switch (message.Response.Status) 483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 485return Response.FromValue(value, message.Response); 488throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 505switch (message.Response.Status) 510using var document = JsonDocument.Parse(message.Response.ContentStream); 512return Response.FromValue(value, message.Response); 515throw ClientDiagnostics.CreateRequestFailedException(message.Response); 556switch (message.Response.Status) 561using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 563return Response.FromValue(value, message.Response); 566throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 588switch (message.Response.Status) 593using var document = JsonDocument.Parse(message.Response.ContentStream); 595return Response.FromValue(value, message.Response); 598throw ClientDiagnostics.CreateRequestFailedException(message.Response); 634switch (message.Response.Status) 639using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 641return Response.FromValue(value, message.Response); 644throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 666switch (message.Response.Status) 671using var document = JsonDocument.Parse(message.Response.ContentStream); 673return Response.FromValue(value, message.Response); 676throw ClientDiagnostics.CreateRequestFailedException(message.Response); 717switch (message.Response.Status) 722using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 724return Response.FromValue(value, message.Response); 727throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 754switch (message.Response.Status) 759using var document = JsonDocument.Parse(message.Response.ContentStream); 761return Response.FromValue(value, message.Response); 764throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NatRulesRestOperations.cs (38)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((VpnGatewayNatRuleData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((VpnGatewayNatRuleData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 219return message.Response; 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323return message.Response; 325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfaceIPConfigurationsRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((NetworkInterfaceIPConfigurationData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((NetworkInterfaceIPConfigurationData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfaceLoadBalancersRestOperations.cs (16)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 190return Response.FromValue(value, message.Response); 193throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 225switch (message.Response.Status) 230using var document = JsonDocument.Parse(message.Response.ContentStream); 232return Response.FromValue(value, message.Response); 235throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfacesRestOperations.cs (74)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((NetworkInterfaceData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((NetworkInterfaceData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 644switch (message.Response.Status) 648return message.Response; 650throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 677switch (message.Response.Status) 681return message.Response; 683throw ClientDiagnostics.CreateRequestFailedException(message.Response); 731switch (message.Response.Status) 735return message.Response; 737throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 764switch (message.Response.Status) 768return message.Response; 770throw ClientDiagnostics.CreateRequestFailedException(message.Response); 806switch (message.Response.Status) 811using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 813return Response.FromValue(value, message.Response); 816throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 838switch (message.Response.Status) 843using var document = JsonDocument.Parse(message.Response.ContentStream); 845return Response.FromValue(value, message.Response); 848throw ClientDiagnostics.CreateRequestFailedException(message.Response); 889switch (message.Response.Status) 894using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 896return Response.FromValue(value, message.Response); 899throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 926switch (message.Response.Status) 931using var document = JsonDocument.Parse(message.Response.ContentStream); 933return Response.FromValue(value, message.Response); 936throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfaceTapConfigurationsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((NetworkInterfaceTapConfigurationData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((NetworkInterfaceTapConfigurationData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkManagementRestOperations.cs (22)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136throw ClientDiagnostics.CreateRequestFailedException(message.Response); 184switch (message.Response.Status) 189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 191return Response.FromValue(value, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 226using var document = JsonDocument.Parse(message.Response.ContentStream); 228return Response.FromValue(value, message.Response); 231throw ClientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 292return message.Response; 294throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 326switch (message.Response.Status) 330return message.Response; 332throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkProfilesRestOperations.cs (64)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((NetworkProfileData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((NetworkProfileData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 339using var document = JsonDocument.Parse(message.Response.ContentStream); 341return Response.FromValue(value, message.Response); 344throw ClientDiagnostics.CreateRequestFailedException(message.Response); 400switch (message.Response.Status) 405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 407return Response.FromValue(value, message.Response); 410throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 442switch (message.Response.Status) 447using var document = JsonDocument.Parse(message.Response.ContentStream); 449return Response.FromValue(value, message.Response); 452throw ClientDiagnostics.CreateRequestFailedException(message.Response); 486switch (message.Response.Status) 491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 493return Response.FromValue(value, message.Response); 496throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 518using var document = JsonDocument.Parse(message.Response.ContentStream); 520return Response.FromValue(value, message.Response); 523throw ClientDiagnostics.CreateRequestFailedException(message.Response); 564switch (message.Response.Status) 569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 571return Response.FromValue(value, message.Response); 574throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 596switch (message.Response.Status) 601using var document = JsonDocument.Parse(message.Response.ContentStream); 603return Response.FromValue(value, message.Response); 606throw ClientDiagnostics.CreateRequestFailedException(message.Response); 642switch (message.Response.Status) 647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 649return Response.FromValue(value, message.Response); 652throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw ClientDiagnostics.CreateRequestFailedException(message.Response); 725switch (message.Response.Status) 730using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 732return Response.FromValue(value, message.Response); 735throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 767using var document = JsonDocument.Parse(message.Response.ContentStream); 769return Response.FromValue(value, message.Response); 772throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkSecurityGroupsRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((NetworkSecurityGroupData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((NetworkSecurityGroupData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 639return Response.FromValue(value, message.Response); 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkVirtualAppliancesRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((NetworkVirtualApplianceData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((NetworkVirtualApplianceData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 297return Response.FromValue(value, message.Response); 300throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 332switch (message.Response.Status) 337using var document = JsonDocument.Parse(message.Response.ContentStream); 339return Response.FromValue(value, message.Response); 342throw ClientDiagnostics.CreateRequestFailedException(message.Response); 398switch (message.Response.Status) 402return message.Response; 404throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 436switch (message.Response.Status) 440return message.Response; 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 483switch (message.Response.Status) 488using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 490return Response.FromValue(value, message.Response); 493throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw ClientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 637switch (message.Response.Status) 642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 644return Response.FromValue(value, message.Response); 647throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw ClientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 727return Response.FromValue(value, message.Response); 730throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkWatchersRestOperations.cs (122)
98switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 141switch (message.Response.Status) 147using var document = JsonDocument.Parse(message.Response.ContentStream); 149return Response.FromValue(value, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 199switch (message.Response.Status) 204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 206return Response.FromValue(value, message.Response); 209return Response.FromValue((NetworkWatcherData)null, message.Response); 211throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 238switch (message.Response.Status) 243using var document = JsonDocument.Parse(message.Response.ContentStream); 245return Response.FromValue(value, message.Response); 248return Response.FromValue((NetworkWatcherData)null, message.Response); 250throw ClientDiagnostics.CreateRequestFailedException(message.Response); 297switch (message.Response.Status) 301return message.Response; 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330switch (message.Response.Status) 334return message.Response; 336throw ClientDiagnostics.CreateRequestFailedException(message.Response); 392switch (message.Response.Status) 397using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 399return Response.FromValue(value, message.Response); 402throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 434switch (message.Response.Status) 439using var document = JsonDocument.Parse(message.Response.ContentStream); 441return Response.FromValue(value, message.Response); 444throw ClientDiagnostics.CreateRequestFailedException(message.Response); 485switch (message.Response.Status) 490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 492return Response.FromValue(value, message.Response); 495throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 517switch (message.Response.Status) 522using var document = JsonDocument.Parse(message.Response.ContentStream); 524return Response.FromValue(value, message.Response); 527throw ClientDiagnostics.CreateRequestFailedException(message.Response); 561switch (message.Response.Status) 566using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 568return Response.FromValue(value, message.Response); 571throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 588switch (message.Response.Status) 593using var document = JsonDocument.Parse(message.Response.ContentStream); 595return Response.FromValue(value, message.Response); 598throw ClientDiagnostics.CreateRequestFailedException(message.Response); 655switch (message.Response.Status) 660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 662return Response.FromValue(value, message.Response); 665throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 697switch (message.Response.Status) 702using var document = JsonDocument.Parse(message.Response.ContentStream); 704return Response.FromValue(value, message.Response); 707throw ClientDiagnostics.CreateRequestFailedException(message.Response); 764switch (message.Response.Status) 768return message.Response; 770throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 802switch (message.Response.Status) 806return message.Response; 808throw ClientDiagnostics.CreateRequestFailedException(message.Response); 865switch (message.Response.Status) 869return message.Response; 871throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 903switch (message.Response.Status) 907return message.Response; 909throw ClientDiagnostics.CreateRequestFailedException(message.Response); 966switch (message.Response.Status) 970return message.Response; 972throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1004switch (message.Response.Status) 1008return message.Response; 1010throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1067switch (message.Response.Status) 1071return message.Response; 1073throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1105switch (message.Response.Status) 1109return message.Response; 1111throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1168switch (message.Response.Status) 1172return message.Response; 1174throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1206switch (message.Response.Status) 1210return message.Response; 1212throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1269switch (message.Response.Status) 1273return message.Response; 1275throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1307switch (message.Response.Status) 1311return message.Response; 1313throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1370switch (message.Response.Status) 1374return message.Response; 1376throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1408switch (message.Response.Status) 1412return message.Response; 1414throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1471switch (message.Response.Status) 1475return message.Response; 1477throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1509switch (message.Response.Status) 1513return message.Response; 1515throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1572switch (message.Response.Status) 1576return message.Response; 1578throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1610switch (message.Response.Status) 1614return message.Response; 1616throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1673switch (message.Response.Status) 1677return message.Response; 1679throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1711switch (message.Response.Status) 1715return message.Response; 1717throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1774switch (message.Response.Status) 1778return message.Response; 1780throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1812switch (message.Response.Status) 1816return message.Response; 1818throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\P2SVpnGatewaysRestOperations.cs (90)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((P2SVpnGatewayData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((P2SVpnGatewayData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 238return message.Response; 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 300return message.Response; 302throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 338return message.Response; 340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 392return message.Response; 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 426return message.Response; 428throw ClientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw ClientDiagnostics.CreateRequestFailedException(message.Response); 545switch (message.Response.Status) 550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 552return Response.FromValue(value, message.Response); 555throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 577using var document = JsonDocument.Parse(message.Response.ContentStream); 579return Response.FromValue(value, message.Response); 582throw ClientDiagnostics.CreateRequestFailedException(message.Response); 630switch (message.Response.Status) 634return message.Response; 636throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 663switch (message.Response.Status) 667return message.Response; 669throw ClientDiagnostics.CreateRequestFailedException(message.Response); 726switch (message.Response.Status) 730return message.Response; 732throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 764switch (message.Response.Status) 768return message.Response; 770throw ClientDiagnostics.CreateRequestFailedException(message.Response); 818switch (message.Response.Status) 822return message.Response; 824throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 851switch (message.Response.Status) 855return message.Response; 857throw ClientDiagnostics.CreateRequestFailedException(message.Response); 914switch (message.Response.Status) 918return message.Response; 920throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 952switch (message.Response.Status) 956return message.Response; 958throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1015switch (message.Response.Status) 1019return message.Response; 1021throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1053switch (message.Response.Status) 1057return message.Response; 1059throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1100switch (message.Response.Status) 1105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1107return Response.FromValue(value, message.Response); 1110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1137switch (message.Response.Status) 1142using var document = JsonDocument.Parse(message.Response.ContentStream); 1144return Response.FromValue(value, message.Response); 1147throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1183switch (message.Response.Status) 1188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1190return Response.FromValue(value, message.Response); 1193throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1215switch (message.Response.Status) 1220using var document = JsonDocument.Parse(message.Response.ContentStream); 1222return Response.FromValue(value, message.Response); 1225throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PacketCapturesRestOperations.cs (42)
105switch (message.Response.Status) 108return message.Response; 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 147switch (message.Response.Status) 150return message.Response; 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 213return Response.FromValue(value, message.Response); 216return Response.FromValue((PacketCaptureData)null, message.Response); 218throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 250switch (message.Response.Status) 255using var document = JsonDocument.Parse(message.Response.ContentStream); 257return Response.FromValue(value, message.Response); 260return Response.FromValue((PacketCaptureData)null, message.Response); 262throw ClientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 320return message.Response; 322throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 354switch (message.Response.Status) 358return message.Response; 360throw ClientDiagnostics.CreateRequestFailedException(message.Response); 415switch (message.Response.Status) 419return message.Response; 421throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 457return message.Response; 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 514switch (message.Response.Status) 518return message.Response; 520throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 552switch (message.Response.Status) 556return message.Response; 558throw ClientDiagnostics.CreateRequestFailedException(message.Response); 606switch (message.Response.Status) 611using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 613return Response.FromValue(value, message.Response); 616throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 643switch (message.Response.Status) 648using var document = JsonDocument.Parse(message.Response.ContentStream); 650return Response.FromValue(value, message.Response); 653throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PeerExpressRouteCircuitConnectionsRestOperations.cs (26)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113return Response.FromValue((PeerExpressRouteCircuitConnectionData)null, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162return Response.FromValue((PeerExpressRouteCircuitConnectionData)null, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 261switch (message.Response.Status) 266using var document = JsonDocument.Parse(message.Response.ContentStream); 268return Response.FromValue(value, message.Response); 271throw ClientDiagnostics.CreateRequestFailedException(message.Response); 322switch (message.Response.Status) 327using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 329return Response.FromValue(value, message.Response); 332throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 369switch (message.Response.Status) 374using var document = JsonDocument.Parse(message.Response.ContentStream); 376return Response.FromValue(value, message.Response); 379throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateDnsZoneGroupsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((PrivateDnsZoneGroupData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((PrivateDnsZoneGroupData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointsRestOperations.cs (54)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((PrivateEndpointData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((PrivateEndpointData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 382return Response.FromValue(value, message.Response); 385throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 407switch (message.Response.Status) 412using var document = JsonDocument.Parse(message.Response.ContentStream); 414return Response.FromValue(value, message.Response); 417throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 458return Response.FromValue(value, message.Response); 461throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 478switch (message.Response.Status) 483using var document = JsonDocument.Parse(message.Response.ContentStream); 485return Response.FromValue(value, message.Response); 488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 529switch (message.Response.Status) 534using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 536return Response.FromValue(value, message.Response); 539throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw ClientDiagnostics.CreateRequestFailedException(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return Response.FromValue(value, message.Response); 622throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644switch (message.Response.Status) 649using var document = JsonDocument.Parse(message.Response.ContentStream); 651return Response.FromValue(value, message.Response); 654throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkServicesRestOperations.cs (138)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((PrivateLinkServiceData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((PrivateLinkServiceData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 382return Response.FromValue(value, message.Response); 385throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 407switch (message.Response.Status) 412using var document = JsonDocument.Parse(message.Response.ContentStream); 414return Response.FromValue(value, message.Response); 417throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 458return Response.FromValue(value, message.Response); 461throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 478switch (message.Response.Status) 483using var document = JsonDocument.Parse(message.Response.ContentStream); 485return Response.FromValue(value, message.Response); 488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 547switch (message.Response.Status) 552using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 554return Response.FromValue(value, message.Response); 557return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 559throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 592switch (message.Response.Status) 597using var document = JsonDocument.Parse(message.Response.ContentStream); 599return Response.FromValue(value, message.Response); 602return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 604throw ClientDiagnostics.CreateRequestFailedException(message.Response); 667switch (message.Response.Status) 672using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 674return Response.FromValue(value, message.Response); 677throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 714switch (message.Response.Status) 719using var document = JsonDocument.Parse(message.Response.ContentStream); 721return Response.FromValue(value, message.Response); 724throw ClientDiagnostics.CreateRequestFailedException(message.Response); 778switch (message.Response.Status) 783return message.Response; 785throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 817switch (message.Response.Status) 822return message.Response; 824throw ClientDiagnostics.CreateRequestFailedException(message.Response); 872switch (message.Response.Status) 877using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 879return Response.FromValue(value, message.Response); 882throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 909switch (message.Response.Status) 914using var document = JsonDocument.Parse(message.Response.ContentStream); 916return Response.FromValue(value, message.Response); 919throw ClientDiagnostics.CreateRequestFailedException(message.Response); 969switch (message.Response.Status) 973return message.Response; 975throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1002switch (message.Response.Status) 1006return message.Response; 1008throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1065switch (message.Response.Status) 1069return message.Response; 1071throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1103switch (message.Response.Status) 1107return message.Response; 1109throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1150switch (message.Response.Status) 1155using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1157return Response.FromValue(value, message.Response); 1160throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1182switch (message.Response.Status) 1187using var document = JsonDocument.Parse(message.Response.ContentStream); 1189return Response.FromValue(value, message.Response); 1192throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1240switch (message.Response.Status) 1245using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1247return Response.FromValue(value, message.Response); 1250throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1277switch (message.Response.Status) 1282using var document = JsonDocument.Parse(message.Response.ContentStream); 1284return Response.FromValue(value, message.Response); 1287throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1328switch (message.Response.Status) 1333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1335return Response.FromValue(value, message.Response); 1338throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1365switch (message.Response.Status) 1370using var document = JsonDocument.Parse(message.Response.ContentStream); 1372return Response.FromValue(value, message.Response); 1375throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1411switch (message.Response.Status) 1416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1418return Response.FromValue(value, message.Response); 1421throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1443switch (message.Response.Status) 1448using var document = JsonDocument.Parse(message.Response.ContentStream); 1450return Response.FromValue(value, message.Response); 1453throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1499switch (message.Response.Status) 1504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1506return Response.FromValue(value, message.Response); 1509throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1541switch (message.Response.Status) 1546using var document = JsonDocument.Parse(message.Response.ContentStream); 1548return Response.FromValue(value, message.Response); 1551throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1592switch (message.Response.Status) 1597using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1599return Response.FromValue(value, message.Response); 1602throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1629switch (message.Response.Status) 1634using var document = JsonDocument.Parse(message.Response.ContentStream); 1636return Response.FromValue(value, message.Response); 1639throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1685switch (message.Response.Status) 1690using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1692return Response.FromValue(value, message.Response); 1695throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1727switch (message.Response.Status) 1732using var document = JsonDocument.Parse(message.Response.ContentStream); 1734return Response.FromValue(value, message.Response); 1737throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PublicIPAddressesRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((PublicIPAddressData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((PublicIPAddressData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 639return Response.FromValue(value, message.Response); 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PublicIPPrefixesRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((PublicIPPrefixData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((PublicIPPrefixData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 639return Response.FromValue(value, message.Response); 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ResourceNavigationLinksRestOperations.cs (8)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteFilterRulesRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((RouteFilterRuleData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((RouteFilterRuleData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteFiltersRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((RouteFilterData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((RouteFilterData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 483switch (message.Response.Status) 488using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 490return Response.FromValue(value, message.Response); 493throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw ClientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 637switch (message.Response.Status) 642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 644return Response.FromValue(value, message.Response); 647throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw ClientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 727return Response.FromValue(value, message.Response); 730throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RoutesRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((RouteData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((RouteData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteTablesRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((RouteTableData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((RouteTableData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 483switch (message.Response.Status) 488using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 490return Response.FromValue(value, message.Response); 493throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515switch (message.Response.Status) 520using var document = JsonDocument.Parse(message.Response.ContentStream); 522return Response.FromValue(value, message.Response); 525throw ClientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 637switch (message.Response.Status) 642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 644return Response.FromValue(value, message.Response); 647throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 674switch (message.Response.Status) 679using var document = JsonDocument.Parse(message.Response.ContentStream); 681return Response.FromValue(value, message.Response); 684throw ClientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 727return Response.FromValue(value, message.Response); 730throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SecurityPartnerProvidersRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((SecurityPartnerProviderData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((SecurityPartnerProviderData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 484return Response.FromValue(value, message.Response); 487throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 514using var document = JsonDocument.Parse(message.Response.ContentStream); 516return Response.FromValue(value, message.Response); 519throw ClientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 638return Response.FromValue(value, message.Response); 641throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 668switch (message.Response.Status) 673using var document = JsonDocument.Parse(message.Response.ContentStream); 675return Response.FromValue(value, message.Response); 678throw ClientDiagnostics.CreateRequestFailedException(message.Response); 714switch (message.Response.Status) 719using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 721return Response.FromValue(value, message.Response); 724throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SecurityRulesRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((SecurityRuleData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((SecurityRuleData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceAssociationLinksRestOperations.cs (8)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceEndpointPoliciesRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((ServiceEndpointPolicyData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((ServiceEndpointPolicyData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 632switch (message.Response.Status) 637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 639return Response.FromValue(value, message.Response); 642throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response); 715switch (message.Response.Status) 720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 722return Response.FromValue(value, message.Response); 725throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 752switch (message.Response.Status) 757using var document = JsonDocument.Parse(message.Response.ContentStream); 759return Response.FromValue(value, message.Response); 762throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceEndpointPolicyDefinitionsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((ServiceEndpointPolicyDefinitionData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((ServiceEndpointPolicyDefinitionData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceTagsRestOperations.cs (8)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SubnetsRestOperations.cs (50)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 201switch (message.Response.Status) 206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 208return Response.FromValue(value, message.Response); 211return Response.FromValue((SubnetData)null, message.Response); 213throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256return Response.FromValue((SubnetData)null, message.Response); 258throw ClientDiagnostics.CreateRequestFailedException(message.Response); 321switch (message.Response.Status) 325return message.Response; 327throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 364switch (message.Response.Status) 368return message.Response; 370throw ClientDiagnostics.CreateRequestFailedException(message.Response); 434switch (message.Response.Status) 438return message.Response; 440throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 481return message.Response; 483throw ClientDiagnostics.CreateRequestFailedException(message.Response); 547switch (message.Response.Status) 551return message.Response; 553throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 590switch (message.Response.Status) 594return message.Response; 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 644switch (message.Response.Status) 649using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 651return Response.FromValue(value, message.Response); 654throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 681switch (message.Response.Status) 686using var document = JsonDocument.Parse(message.Response.ContentStream); 688return Response.FromValue(value, message.Response); 691throw ClientDiagnostics.CreateRequestFailedException(message.Response); 737switch (message.Response.Status) 742using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 744return Response.FromValue(value, message.Response); 747throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 779switch (message.Response.Status) 784using var document = JsonDocument.Parse(message.Response.ContentStream); 786return Response.FromValue(value, message.Response); 789throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\UsagesRestOperations.cs (16)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 203switch (message.Response.Status) 208using var document = JsonDocument.Parse(message.Response.ContentStream); 210return Response.FromValue(value, message.Response); 213throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualApplianceSitesRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((VirtualApplianceSiteData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((VirtualApplianceSiteData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualApplianceSkusRestOperations.cs (26)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 153switch (message.Response.Status) 158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 160return Response.FromValue(value, message.Response); 163return Response.FromValue((NetworkVirtualApplianceSkuData)null, message.Response); 165throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 187switch (message.Response.Status) 192using var document = JsonDocument.Parse(message.Response.ContentStream); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((NetworkVirtualApplianceSkuData)null, message.Response); 199throw ClientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 242return Response.FromValue(value, message.Response); 245throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 272using var document = JsonDocument.Parse(message.Response.ContentStream); 274return Response.FromValue(value, message.Response); 277throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubBgpConnectionRestOperations.cs (22)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105return Response.FromValue((BgpConnectionData)null, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149return Response.FromValue((BgpConnectionData)null, message.Response); 151throw ClientDiagnostics.CreateRequestFailedException(message.Response); 214switch (message.Response.Status) 218return message.Response; 220throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 261return message.Response; 263throw ClientDiagnostics.CreateRequestFailedException(message.Response); 317switch (message.Response.Status) 322return message.Response; 324throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 361return message.Response; 363throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubBgpConnectionsRestOperations.cs (28)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 192switch (message.Response.Status) 196return message.Response; 198throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 230switch (message.Response.Status) 234return message.Response; 236throw ClientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 295return message.Response; 297throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329switch (message.Response.Status) 333return message.Response; 335throw ClientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 388return Response.FromValue(value, message.Response); 391throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 423switch (message.Response.Status) 428using var document = JsonDocument.Parse(message.Response.ContentStream); 430return Response.FromValue(value, message.Response); 433throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubIpConfigurationRestOperations.cs (38)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((HubIpConfigurationData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((HubIpConfigurationData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 219return message.Response; 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323return message.Response; 325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubRouteTableV2SRestOperations.cs (38)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((VirtualHubRouteTableV2Data)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((VirtualHubRouteTableV2Data)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 219return message.Response; 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323return message.Response; 325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubsRestOperations.cs (68)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((VirtualHubData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((VirtualHubData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 238return message.Response; 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343using var document = JsonDocument.Parse(message.Response.ContentStream); 345return Response.FromValue(value, message.Response); 348throw ClientDiagnostics.CreateRequestFailedException(message.Response); 395switch (message.Response.Status) 400return message.Response; 402throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 429switch (message.Response.Status) 434return message.Response; 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 484return Response.FromValue(value, message.Response); 487throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 514using var document = JsonDocument.Parse(message.Response.ContentStream); 516return Response.FromValue(value, message.Response); 519throw ClientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 646switch (message.Response.Status) 650return message.Response; 652throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 680switch (message.Response.Status) 684return message.Response; 686throw ClientDiagnostics.CreateRequestFailedException(message.Response); 727switch (message.Response.Status) 732using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 734return Response.FromValue(value, message.Response); 737throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 764switch (message.Response.Status) 769using var document = JsonDocument.Parse(message.Response.ContentStream); 771return Response.FromValue(value, message.Response); 774throw ClientDiagnostics.CreateRequestFailedException(message.Response); 810switch (message.Response.Status) 815using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 817return Response.FromValue(value, message.Response); 820throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 842switch (message.Response.Status) 847using var document = JsonDocument.Parse(message.Response.ContentStream); 849return Response.FromValue(value, message.Response); 852throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewayConnectionsRestOperations.cs (88)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((VirtualNetworkGatewayConnectionData)null, message.Response); 201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228switch (message.Response.Status) 233using var document = JsonDocument.Parse(message.Response.ContentStream); 235return Response.FromValue(value, message.Response); 238return Response.FromValue((VirtualNetworkGatewayConnectionData)null, message.Response); 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292return message.Response; 294throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 321switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 388return message.Response; 390throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422switch (message.Response.Status) 426return message.Response; 428throw ClientDiagnostics.CreateRequestFailedException(message.Response); 485switch (message.Response.Status) 489return message.Response; 491throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 523switch (message.Response.Status) 527return message.Response; 529throw ClientDiagnostics.CreateRequestFailedException(message.Response); 577switch (message.Response.Status) 582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 584return Response.FromValue(value, message.Response); 587throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 614switch (message.Response.Status) 619using var document = JsonDocument.Parse(message.Response.ContentStream); 621return Response.FromValue(value, message.Response); 624throw ClientDiagnostics.CreateRequestFailedException(message.Response); 665switch (message.Response.Status) 670using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 672return Response.FromValue(value, message.Response); 675throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 697switch (message.Response.Status) 702using var document = JsonDocument.Parse(message.Response.ContentStream); 704return Response.FromValue(value, message.Response); 707throw ClientDiagnostics.CreateRequestFailedException(message.Response); 764switch (message.Response.Status) 768return message.Response; 770throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 802switch (message.Response.Status) 806return message.Response; 808throw ClientDiagnostics.CreateRequestFailedException(message.Response); 864switch (message.Response.Status) 868return message.Response; 870throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 898switch (message.Response.Status) 902return message.Response; 904throw ClientDiagnostics.CreateRequestFailedException(message.Response); 961switch (message.Response.Status) 965return message.Response; 967throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 999switch (message.Response.Status) 1003return message.Response; 1005throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1053switch (message.Response.Status) 1057return message.Response; 1059throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1086switch (message.Response.Status) 1090return message.Response; 1092throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1140switch (message.Response.Status) 1143return message.Response; 1145throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1172switch (message.Response.Status) 1175return message.Response; 1177throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1218switch (message.Response.Status) 1223using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1225return Response.FromValue(value, message.Response); 1228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1255switch (message.Response.Status) 1260using var document = JsonDocument.Parse(message.Response.ContentStream); 1262return Response.FromValue(value, message.Response); 1265throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewayNatRulesRestOperations.cs (38)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((VirtualNetworkGatewayNatRuleData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((VirtualNetworkGatewayNatRuleData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 219return message.Response; 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323return message.Response; 325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewaysRestOperations.cs (160)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 196return Response.FromValue(value, message.Response); 199return Response.FromValue((VirtualNetworkGatewayData)null, message.Response); 201throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228switch (message.Response.Status) 233using var document = JsonDocument.Parse(message.Response.ContentStream); 235return Response.FromValue(value, message.Response); 238return Response.FromValue((VirtualNetworkGatewayData)null, message.Response); 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 287switch (message.Response.Status) 292return message.Response; 294throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 321switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 388return message.Response; 390throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422switch (message.Response.Status) 426return message.Response; 428throw ClientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 476return Response.FromValue(value, message.Response); 479throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 501switch (message.Response.Status) 506using var document = JsonDocument.Parse(message.Response.ContentStream); 508return Response.FromValue(value, message.Response); 511throw ClientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 596switch (message.Response.Status) 601using var document = JsonDocument.Parse(message.Response.ContentStream); 603return Response.FromValue(value, message.Response); 606throw ClientDiagnostics.CreateRequestFailedException(message.Response); 659switch (message.Response.Status) 663return message.Response; 665throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 693switch (message.Response.Status) 697return message.Response; 699throw ClientDiagnostics.CreateRequestFailedException(message.Response); 747switch (message.Response.Status) 751return message.Response; 753throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 780switch (message.Response.Status) 784return message.Response; 786throw ClientDiagnostics.CreateRequestFailedException(message.Response); 843switch (message.Response.Status) 847return message.Response; 849throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 881switch (message.Response.Status) 885return message.Response; 887throw ClientDiagnostics.CreateRequestFailedException(message.Response); 944switch (message.Response.Status) 948return message.Response; 950throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 982switch (message.Response.Status) 986return message.Response; 988throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1036switch (message.Response.Status) 1040return message.Response; 1042throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1069switch (message.Response.Status) 1073return message.Response; 1075throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1128switch (message.Response.Status) 1132return message.Response; 1134throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1162switch (message.Response.Status) 1166return message.Response; 1168throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1216switch (message.Response.Status) 1221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1223return Response.FromValue(value, message.Response); 1226throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1253switch (message.Response.Status) 1258using var document = JsonDocument.Parse(message.Response.ContentStream); 1260return Response.FromValue(value, message.Response); 1263throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1311switch (message.Response.Status) 1315return message.Response; 1317throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1344switch (message.Response.Status) 1348return message.Response; 1350throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1404switch (message.Response.Status) 1408return message.Response; 1410throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1442switch (message.Response.Status) 1446return message.Response; 1448throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1505switch (message.Response.Status) 1509return message.Response; 1511throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1543switch (message.Response.Status) 1547return message.Response; 1549throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1597switch (message.Response.Status) 1600return message.Response; 1602throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1629switch (message.Response.Status) 1632return message.Response; 1634throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1691switch (message.Response.Status) 1696using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1698return Response.FromValue(value, message.Response); 1701throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1733switch (message.Response.Status) 1738using var document = JsonDocument.Parse(message.Response.ContentStream); 1740return Response.FromValue(value, message.Response); 1743throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1799switch (message.Response.Status) 1803return message.Response; 1805throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1833switch (message.Response.Status) 1837return message.Response; 1839throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1896switch (message.Response.Status) 1900return message.Response; 1902throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1934switch (message.Response.Status) 1938return message.Response; 1940throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1988switch (message.Response.Status) 1992return message.Response; 1994throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2021switch (message.Response.Status) 2025return message.Response; 2027throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2084switch (message.Response.Status) 2088return message.Response; 2090throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2122switch (message.Response.Status) 2126return message.Response; 2128throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2169switch (message.Response.Status) 2174using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2176return Response.FromValue(value, message.Response); 2179throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2206switch (message.Response.Status) 2211using var document = JsonDocument.Parse(message.Response.ContentStream); 2213return Response.FromValue(value, message.Response); 2216throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2262switch (message.Response.Status) 2267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2269return Response.FromValue(value, message.Response); 2272throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2304switch (message.Response.Status) 2309using var document = JsonDocument.Parse(message.Response.ContentStream); 2311return Response.FromValue(value, message.Response); 2314throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkPeeringsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((VirtualNetworkPeeringData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((VirtualNetworkPeeringData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 364switch (message.Response.Status) 368return message.Response; 370throw ClientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 423using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 425return Response.FromValue(value, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 455switch (message.Response.Status) 460using var document = JsonDocument.Parse(message.Response.ContentStream); 462return Response.FromValue(value, message.Response); 465throw ClientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 558using var document = JsonDocument.Parse(message.Response.ContentStream); 560return Response.FromValue(value, message.Response); 563throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworksRestOperations.cs (86)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((VirtualNetworkData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((VirtualNetworkData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 397return Response.FromValue(value, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 437using var document = JsonDocument.Parse(message.Response.ContentStream); 439return Response.FromValue(value, message.Response); 442throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 483return Response.FromValue(value, message.Response); 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 503switch (message.Response.Status) 508using var document = JsonDocument.Parse(message.Response.ContentStream); 510return Response.FromValue(value, message.Response); 513throw ClientDiagnostics.CreateRequestFailedException(message.Response); 554switch (message.Response.Status) 559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 561return Response.FromValue(value, message.Response); 564throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response); 650switch (message.Response.Status) 655using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 657return Response.FromValue(value, message.Response); 660throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 692switch (message.Response.Status) 697using var document = JsonDocument.Parse(message.Response.ContentStream); 699return Response.FromValue(value, message.Response); 702throw ClientDiagnostics.CreateRequestFailedException(message.Response); 750switch (message.Response.Status) 755using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 757return Response.FromValue(value, message.Response); 760throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 787switch (message.Response.Status) 792using var document = JsonDocument.Parse(message.Response.ContentStream); 794return Response.FromValue(value, message.Response); 797throw ClientDiagnostics.CreateRequestFailedException(message.Response); 833switch (message.Response.Status) 838using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 840return Response.FromValue(value, message.Response); 843throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 865switch (message.Response.Status) 870using var document = JsonDocument.Parse(message.Response.ContentStream); 872return Response.FromValue(value, message.Response); 875throw ClientDiagnostics.CreateRequestFailedException(message.Response); 916switch (message.Response.Status) 921using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 923return Response.FromValue(value, message.Response); 926throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 953switch (message.Response.Status) 958using var document = JsonDocument.Parse(message.Response.ContentStream); 960return Response.FromValue(value, message.Response); 963throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1009switch (message.Response.Status) 1014using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1016return Response.FromValue(value, message.Response); 1019throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051switch (message.Response.Status) 1056using var document = JsonDocument.Parse(message.Response.ContentStream); 1058return Response.FromValue(value, message.Response); 1061throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkTapsRestOperations.cs (62)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177switch (message.Response.Status) 182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 184return Response.FromValue(value, message.Response); 187return Response.FromValue((VirtualNetworkTapData)null, message.Response); 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216switch (message.Response.Status) 221using var document = JsonDocument.Parse(message.Response.ContentStream); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((VirtualNetworkTapData)null, message.Response); 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 384switch (message.Response.Status) 389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 391return Response.FromValue(value, message.Response); 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 470switch (message.Response.Status) 475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 477return Response.FromValue(value, message.Response); 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 497switch (message.Response.Status) 502using var document = JsonDocument.Parse(message.Response.ContentStream); 504return Response.FromValue(value, message.Response); 507throw ClientDiagnostics.CreateRequestFailedException(message.Response); 548switch (message.Response.Status) 553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 555return Response.FromValue(value, message.Response); 558throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 626switch (message.Response.Status) 631using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 633return Response.FromValue(value, message.Response); 636throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 658switch (message.Response.Status) 663using var document = JsonDocument.Parse(message.Response.ContentStream); 665return Response.FromValue(value, message.Response); 668throw ClientDiagnostics.CreateRequestFailedException(message.Response); 709switch (message.Response.Status) 714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 716return Response.FromValue(value, message.Response); 719throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualRouterPeeringsRestOperations.cs (38)
96switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 203return Response.FromValue(value, message.Response); 206return Response.FromValue((VirtualRouterPeeringData)null, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 240switch (message.Response.Status) 245using var document = JsonDocument.Parse(message.Response.ContentStream); 247return Response.FromValue(value, message.Response); 250return Response.FromValue((VirtualRouterPeeringData)null, message.Response); 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315switch (message.Response.Status) 319return message.Response; 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 412switch (message.Response.Status) 417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 419return Response.FromValue(value, message.Response); 422throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 505switch (message.Response.Status) 510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 512return Response.FromValue(value, message.Response); 515throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 547switch (message.Response.Status) 552using var document = JsonDocument.Parse(message.Response.ContentStream); 554return Response.FromValue(value, message.Response); 557throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualRoutersRestOperations.cs (54)
89switch (message.Response.Status) 94return message.Response; 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 123switch (message.Response.Status) 128return message.Response; 130throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192return Response.FromValue((VirtualRouterData)null, message.Response); 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 222switch (message.Response.Status) 227using var document = JsonDocument.Parse(message.Response.ContentStream); 229return Response.FromValue(value, message.Response); 232return Response.FromValue((VirtualRouterData)null, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 290switch (message.Response.Status) 294return message.Response; 296throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 328switch (message.Response.Status) 332return message.Response; 334throw ClientDiagnostics.CreateRequestFailedException(message.Response); 375switch (message.Response.Status) 380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 382return Response.FromValue(value, message.Response); 385throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 407switch (message.Response.Status) 412using var document = JsonDocument.Parse(message.Response.ContentStream); 414return Response.FromValue(value, message.Response); 417throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 458return Response.FromValue(value, message.Response); 461throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 478switch (message.Response.Status) 483using var document = JsonDocument.Parse(message.Response.ContentStream); 485return Response.FromValue(value, message.Response); 488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 529switch (message.Response.Status) 534using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 536return Response.FromValue(value, message.Response); 539throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw ClientDiagnostics.CreateRequestFailedException(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return Response.FromValue(value, message.Response); 622throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644switch (message.Response.Status) 649using var document = JsonDocument.Parse(message.Response.ContentStream); 651return Response.FromValue(value, message.Response); 654throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualWansRestOperations.cs (62)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((VirtualWANData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((VirtualWANData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 238return message.Response; 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343using var document = JsonDocument.Parse(message.Response.ContentStream); 345return Response.FromValue(value, message.Response); 348throw ClientDiagnostics.CreateRequestFailedException(message.Response); 395switch (message.Response.Status) 400return message.Response; 402throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 429switch (message.Response.Status) 434return message.Response; 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 484return Response.FromValue(value, message.Response); 487throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 514using var document = JsonDocument.Parse(message.Response.ContentStream); 516return Response.FromValue(value, message.Response); 519throw ClientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 638return Response.FromValue(value, message.Response); 641throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 668switch (message.Response.Status) 673using var document = JsonDocument.Parse(message.Response.ContentStream); 675return Response.FromValue(value, message.Response); 678throw ClientDiagnostics.CreateRequestFailedException(message.Response); 714switch (message.Response.Status) 719using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 721return Response.FromValue(value, message.Response); 724throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnConnectionsRestOperations.cs (50)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((VpnConnectionData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((VpnConnectionData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 219return message.Response; 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323return message.Response; 325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362return message.Response; 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 427switch (message.Response.Status) 431return message.Response; 433throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 466switch (message.Response.Status) 470return message.Response; 472throw ClientDiagnostics.CreateRequestFailedException(message.Response); 535switch (message.Response.Status) 539return message.Response; 541throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 574switch (message.Response.Status) 578return message.Response; 580throw ClientDiagnostics.CreateRequestFailedException(message.Response); 628switch (message.Response.Status) 633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 635return Response.FromValue(value, message.Response); 638throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 665switch (message.Response.Status) 670using var document = JsonDocument.Parse(message.Response.ContentStream); 672return Response.FromValue(value, message.Response); 675throw ClientDiagnostics.CreateRequestFailedException(message.Response); 721switch (message.Response.Status) 726using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 728return Response.FromValue(value, message.Response); 731throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 763switch (message.Response.Status) 768using var document = JsonDocument.Parse(message.Response.ContentStream); 770return Response.FromValue(value, message.Response); 773throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnGatewaysRestOperations.cs (78)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((VpnGatewayData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((VpnGatewayData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 238return message.Response; 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 300return message.Response; 302throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 338return message.Response; 340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 387switch (message.Response.Status) 392return message.Response; 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 421switch (message.Response.Status) 426return message.Response; 428throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476switch (message.Response.Status) 480return message.Response; 482throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 513return message.Response; 515throw ClientDiagnostics.CreateRequestFailedException(message.Response); 571switch (message.Response.Status) 575return message.Response; 577throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 605switch (message.Response.Status) 609return message.Response; 611throw ClientDiagnostics.CreateRequestFailedException(message.Response); 667switch (message.Response.Status) 671return message.Response; 673throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 701switch (message.Response.Status) 705return message.Response; 707throw ClientDiagnostics.CreateRequestFailedException(message.Response); 748switch (message.Response.Status) 753using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 755return Response.FromValue(value, message.Response); 758throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 780switch (message.Response.Status) 785using var document = JsonDocument.Parse(message.Response.ContentStream); 787return Response.FromValue(value, message.Response); 790throw ClientDiagnostics.CreateRequestFailedException(message.Response); 824switch (message.Response.Status) 829using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 831return Response.FromValue(value, message.Response); 834throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 851switch (message.Response.Status) 856using var document = JsonDocument.Parse(message.Response.ContentStream); 858return Response.FromValue(value, message.Response); 861throw ClientDiagnostics.CreateRequestFailedException(message.Response); 902switch (message.Response.Status) 907using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 909return Response.FromValue(value, message.Response); 912throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 939switch (message.Response.Status) 944using var document = JsonDocument.Parse(message.Response.ContentStream); 946return Response.FromValue(value, message.Response); 949throw ClientDiagnostics.CreateRequestFailedException(message.Response); 985switch (message.Response.Status) 990using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 992return Response.FromValue(value, message.Response); 995throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1017switch (message.Response.Status) 1022using var document = JsonDocument.Parse(message.Response.ContentStream); 1024return Response.FromValue(value, message.Response); 1027throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnLinkConnectionsRestOperations.cs (28)
104switch (message.Response.Status) 107return message.Response; 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146switch (message.Response.Status) 149return message.Response; 151throw ClientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 217return message.Response; 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 256switch (message.Response.Status) 260return message.Response; 262throw ClientDiagnostics.CreateRequestFailedException(message.Response); 317switch (message.Response.Status) 322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 324return Response.FromValue(value, message.Response); 327throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 359switch (message.Response.Status) 364using var document = JsonDocument.Parse(message.Response.ContentStream); 366return Response.FromValue(value, message.Response); 369throw ClientDiagnostics.CreateRequestFailedException(message.Response); 420switch (message.Response.Status) 425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 427return Response.FromValue(value, message.Response); 430throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 467switch (message.Response.Status) 472using var document = JsonDocument.Parse(message.Response.ContentStream); 474return Response.FromValue(value, message.Response); 477throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs (6)
88switch (message.Response.Status) 92return message.Response; 94throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 125return message.Response; 127throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnServerConfigurationsRestOperations.cs (62)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((VpnServerConfigurationData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((VpnServerConfigurationData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 238return message.Response; 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343using var document = JsonDocument.Parse(message.Response.ContentStream); 345return Response.FromValue(value, message.Response); 348throw ClientDiagnostics.CreateRequestFailedException(message.Response); 395switch (message.Response.Status) 400return message.Response; 402throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 429switch (message.Response.Status) 434return message.Response; 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 484return Response.FromValue(value, message.Response); 487throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 514using var document = JsonDocument.Parse(message.Response.ContentStream); 516return Response.FromValue(value, message.Response); 519throw ClientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 638return Response.FromValue(value, message.Response); 641throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 668switch (message.Response.Status) 673using var document = JsonDocument.Parse(message.Response.ContentStream); 675return Response.FromValue(value, message.Response); 678throw ClientDiagnostics.CreateRequestFailedException(message.Response); 714switch (message.Response.Status) 719using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 721return Response.FromValue(value, message.Response); 724throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSiteLinkConnectionsRestOperations.cs (10)
102switch (message.Response.Status) 107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 109return Response.FromValue(value, message.Response); 112return Response.FromValue((VpnSiteLinkConnectionData)null, message.Response); 114throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161return Response.FromValue((VpnSiteLinkConnectionData)null, message.Response); 163throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSiteLinksRestOperations.cs (26)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((VpnSiteLinkData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((VpnSiteLinkData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 207return Response.FromValue(value, message.Response); 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSitesConfigurationRestOperations.cs (6)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSitesRestOperations.cs (62)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((VpnSiteData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((VpnSiteData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 238return message.Response; 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343using var document = JsonDocument.Parse(message.Response.ContentStream); 345return Response.FromValue(value, message.Response); 348throw ClientDiagnostics.CreateRequestFailedException(message.Response); 395switch (message.Response.Status) 400return message.Response; 402throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 429switch (message.Response.Status) 434return message.Response; 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 477switch (message.Response.Status) 482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 484return Response.FromValue(value, message.Response); 487throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 509switch (message.Response.Status) 514using var document = JsonDocument.Parse(message.Response.ContentStream); 516return Response.FromValue(value, message.Response); 519throw ClientDiagnostics.CreateRequestFailedException(message.Response); 553switch (message.Response.Status) 558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 560return Response.FromValue(value, message.Response); 563throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 638return Response.FromValue(value, message.Response); 641throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 668switch (message.Response.Status) 673using var document = JsonDocument.Parse(message.Response.ContentStream); 675return Response.FromValue(value, message.Response); 678throw ClientDiagnostics.CreateRequestFailedException(message.Response); 714switch (message.Response.Status) 719using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 721return Response.FromValue(value, message.Response); 724throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WebApplicationFirewallPoliciesRestOperations.cs (56)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 159switch (message.Response.Status) 164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 166return Response.FromValue(value, message.Response); 169throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 186switch (message.Response.Status) 191using var document = JsonDocument.Parse(message.Response.ContentStream); 193return Response.FromValue(value, message.Response); 196throw ClientDiagnostics.CreateRequestFailedException(message.Response); 243switch (message.Response.Status) 248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 250return Response.FromValue(value, message.Response); 253return Response.FromValue((WebApplicationFirewallPolicyData)null, message.Response); 255throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282switch (message.Response.Status) 287using var document = JsonDocument.Parse(message.Response.ContentStream); 289return Response.FromValue(value, message.Response); 292return Response.FromValue((WebApplicationFirewallPolicyData)null, message.Response); 294throw ClientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 356using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 358return Response.FromValue(value, message.Response); 361throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 393switch (message.Response.Status) 399using var document = JsonDocument.Parse(message.Response.ContentStream); 401return Response.FromValue(value, message.Response); 404throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456return message.Response; 458throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 485switch (message.Response.Status) 490return message.Response; 492throw ClientDiagnostics.CreateRequestFailedException(message.Response); 533switch (message.Response.Status) 538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 540return Response.FromValue(value, message.Response); 543throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 570switch (message.Response.Status) 575using var document = JsonDocument.Parse(message.Response.ContentStream); 577return Response.FromValue(value, message.Response); 580throw ClientDiagnostics.CreateRequestFailedException(message.Response); 616switch (message.Response.Status) 621using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 623return Response.FromValue(value, message.Response); 626throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 648switch (message.Response.Status) 653using var document = JsonDocument.Parse(message.Response.ContentStream); 655return Response.FromValue(value, message.Response); 658throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WebCategoriesRestOperations.cs (26)
87switch (message.Response.Status) 92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 94return Response.FromValue(value, message.Response); 97return Response.FromValue((AzureWebCategoryData)null, message.Response); 99throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 122switch (message.Response.Status) 127using var document = JsonDocument.Parse(message.Response.ContentStream); 129return Response.FromValue(value, message.Response); 132return Response.FromValue((AzureWebCategoryData)null, message.Response); 134throw ClientDiagnostics.CreateRequestFailedException(message.Response); 168switch (message.Response.Status) 173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 175return Response.FromValue(value, message.Response); 178throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 195switch (message.Response.Status) 200using var document = JsonDocument.Parse(message.Response.ContentStream); 202return Response.FromValue(value, message.Response); 205throw ClientDiagnostics.CreateRequestFailedException(message.Response); 241switch (message.Response.Status) 246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 248return Response.FromValue(value, message.Response); 251throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 273switch (message.Response.Status) 278using var document = JsonDocument.Parse(message.Response.ContentStream); 280return Response.FromValue(value, message.Response); 283throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.Resources (471)
Generated\RestOperations\ApplicationDefinitionsRestOperations.cs (38)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((ApplicationDefinitionData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((ApplicationDefinitionData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192return message.Response; 194throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 226return message.Response; 228throw ClientDiagnostics.CreateRequestFailedException(message.Response); 284switch (message.Response.Status) 288return message.Response; 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 326return message.Response; 328throw ClientDiagnostics.CreateRequestFailedException(message.Response); 369switch (message.Response.Status) 374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 376return Response.FromValue(value, message.Response); 379throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 401switch (message.Response.Status) 406using var document = JsonDocument.Parse(message.Response.ContentStream); 408return Response.FromValue(value, message.Response); 411throw ClientDiagnostics.CreateRequestFailedException(message.Response); 452switch (message.Response.Status) 457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 459return Response.FromValue(value, message.Response); 462throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 489switch (message.Response.Status) 494using var document = JsonDocument.Parse(message.Response.ContentStream); 496return Response.FromValue(value, message.Response); 499throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationsRestOperations.cs (68)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((ApplicationData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((ApplicationData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 191return message.Response; 193throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 220switch (message.Response.Status) 224return message.Response; 226throw ClientDiagnostics.CreateRequestFailedException(message.Response); 282switch (message.Response.Status) 286return message.Response; 288throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 320switch (message.Response.Status) 324return message.Response; 326throw ClientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 388return Response.FromValue(value, message.Response); 391throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424using var document = JsonDocument.Parse(message.Response.ContentStream); 426return Response.FromValue(value, message.Response); 429throw ClientDiagnostics.CreateRequestFailedException(message.Response); 470switch (message.Response.Status) 475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 477return Response.FromValue(value, message.Response); 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 507using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512throw ClientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 573switch (message.Response.Status) 578using var document = JsonDocument.Parse(message.Response.ContentStream); 580return Response.FromValue(value, message.Response); 583throw ClientDiagnostics.CreateRequestFailedException(message.Response); 631switch (message.Response.Status) 634return message.Response; 636throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 663switch (message.Response.Status) 666return message.Response; 668throw ClientDiagnostics.CreateRequestFailedException(message.Response); 709switch (message.Response.Status) 714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 716return Response.FromValue(value, message.Response); 719throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response); 792switch (message.Response.Status) 797using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 799return Response.FromValue(value, message.Response); 802throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 824switch (message.Response.Status) 829using var document = JsonDocument.Parse(message.Response.ContentStream); 831return Response.FromValue(value, message.Response); 834throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentRestOperations.cs (24)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 131using var document = JsonDocument.Parse(message.Response.ContentStream); 133return Response.FromValue(value, message.Response); 136throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215switch (message.Response.Status) 220using var document = JsonDocument.Parse(message.Response.ContentStream); 222return Response.FromValue(value, message.Response); 225throw ClientDiagnostics.CreateRequestFailedException(message.Response); 267switch (message.Response.Status) 272using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 274return Response.FromValue(value, message.Response); 277throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 305switch (message.Response.Status) 310using var document = JsonDocument.Parse(message.Response.ContentStream); 312return Response.FromValue(value, message.Response); 315throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentScriptsRestOperations.cs (80)
98switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 136switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245throw ClientDiagnostics.CreateRequestFailedException(message.Response); 292switch (message.Response.Status) 297using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 299return Response.FromValue(value, message.Response); 302return Response.FromValue((DeploymentScriptData)null, message.Response); 304throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 336using var document = JsonDocument.Parse(message.Response.ContentStream); 338return Response.FromValue(value, message.Response); 341return Response.FromValue((DeploymentScriptData)null, message.Response); 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 390switch (message.Response.Status) 394return message.Response; 396throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 423switch (message.Response.Status) 427return message.Response; 429throw ClientDiagnostics.CreateRequestFailedException(message.Response); 463switch (message.Response.Status) 468using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 470return Response.FromValue(value, message.Response); 473throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 490switch (message.Response.Status) 495using var document = JsonDocument.Parse(message.Response.ContentStream); 497return Response.FromValue(value, message.Response); 500throw ClientDiagnostics.CreateRequestFailedException(message.Response); 548switch (message.Response.Status) 553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 555return Response.FromValue(value, message.Response); 558throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595throw ClientDiagnostics.CreateRequestFailedException(message.Response); 648switch (message.Response.Status) 653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 655return Response.FromValue(value, message.Response); 658return Response.FromValue((ScriptLogData)null, message.Response); 660throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 688switch (message.Response.Status) 693using var document = JsonDocument.Parse(message.Response.ContentStream); 695return Response.FromValue(value, message.Response); 698return Response.FromValue((ScriptLogData)null, message.Response); 700throw ClientDiagnostics.CreateRequestFailedException(message.Response); 741switch (message.Response.Status) 746using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 748return Response.FromValue(value, message.Response); 751throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 773switch (message.Response.Status) 778using var document = JsonDocument.Parse(message.Response.ContentStream); 780return Response.FromValue(value, message.Response); 783throw ClientDiagnostics.CreateRequestFailedException(message.Response); 819switch (message.Response.Status) 824using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 826return Response.FromValue(value, message.Response); 829throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 851switch (message.Response.Status) 856using var document = JsonDocument.Parse(message.Response.ContentStream); 858return Response.FromValue(value, message.Response); 861throw ClientDiagnostics.CreateRequestFailedException(message.Response); 902switch (message.Response.Status) 907using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 909return Response.FromValue(value, message.Response); 912throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 939switch (message.Response.Status) 944using var document = JsonDocument.Parse(message.Response.ContentStream); 946return Response.FromValue(value, message.Response); 949throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentsRestOperations.cs (96)
82switch (message.Response.Status) 86return message.Response; 88throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 110switch (message.Response.Status) 114return message.Response; 116throw ClientDiagnostics.CreateRequestFailedException(message.Response); 156switch (message.Response.Status) 160return message.Response; 162throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 184switch (message.Response.Status) 188return message.Response; 190throw ClientDiagnostics.CreateRequestFailedException(message.Response); 239switch (message.Response.Status) 243return message.Response; 245throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 272switch (message.Response.Status) 276return message.Response; 278throw ClientDiagnostics.CreateRequestFailedException(message.Response); 318switch (message.Response.Status) 323using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 325return Response.FromValue(value, message.Response); 328return Response.FromValue((DeploymentData)null, message.Response); 330throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357using var document = JsonDocument.Parse(message.Response.ContentStream); 359return Response.FromValue(value, message.Response); 362return Response.FromValue((DeploymentData)null, message.Response); 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 405switch (message.Response.Status) 408return message.Response; 410throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 432switch (message.Response.Status) 435return message.Response; 437throw ClientDiagnostics.CreateRequestFailedException(message.Response); 487switch (message.Response.Status) 492return message.Response; 494throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 521switch (message.Response.Status) 526return message.Response; 528throw ClientDiagnostics.CreateRequestFailedException(message.Response); 569switch (message.Response.Status) 574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 576return Response.FromValue(value, message.Response); 579throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 601switch (message.Response.Status) 606using var document = JsonDocument.Parse(message.Response.ContentStream); 608return Response.FromValue(value, message.Response); 611throw ClientDiagnostics.CreateRequestFailedException(message.Response); 655switch (message.Response.Status) 660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 662return Response.FromValue(value, message.Response); 665throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 684switch (message.Response.Status) 689using var document = JsonDocument.Parse(message.Response.ContentStream); 691return Response.FromValue(value, message.Response); 694throw ClientDiagnostics.CreateRequestFailedException(message.Response); 737switch (message.Response.Status) 741return message.Response; 743throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 765switch (message.Response.Status) 769return message.Response; 771throw ClientDiagnostics.CreateRequestFailedException(message.Response); 821switch (message.Response.Status) 825return message.Response; 827throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 854switch (message.Response.Status) 858return message.Response; 860throw ClientDiagnostics.CreateRequestFailedException(message.Response); 910switch (message.Response.Status) 914return message.Response; 916throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 943switch (message.Response.Status) 947return message.Response; 949throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1006switch (message.Response.Status) 1010return message.Response; 1012throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1044switch (message.Response.Status) 1048return message.Response; 1050throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1086switch (message.Response.Status) 1091using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1093return Response.FromValue(value, message.Response); 1096throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1113switch (message.Response.Status) 1118using var document = JsonDocument.Parse(message.Response.ContentStream); 1120return Response.FromValue(value, message.Response); 1123throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1161switch (message.Response.Status) 1166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1168return Response.FromValue(value, message.Response); 1171throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1195switch (message.Response.Status) 1200using var document = JsonDocument.Parse(message.Response.ContentStream); 1202return Response.FromValue(value, message.Response); 1205throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JitRequestsRestOperations.cs (46)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((JitRequestData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((JitRequestData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 234switch (message.Response.Status) 238return message.Response; 240throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343using var document = JsonDocument.Parse(message.Response.ContentStream); 345return Response.FromValue(value, message.Response); 348throw ClientDiagnostics.CreateRequestFailedException(message.Response); 395switch (message.Response.Status) 399return message.Response; 401throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 428switch (message.Response.Status) 432return message.Response; 434throw ClientDiagnostics.CreateRequestFailedException(message.Response); 468switch (message.Response.Status) 473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 475return Response.FromValue(value, message.Response); 478throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505throw ClientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 578switch (message.Response.Status) 583using var document = JsonDocument.Parse(message.Response.ContentStream); 585return Response.FromValue(value, message.Response); 588throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TemplateSpecsRestOperations.cs (64)
98switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 141switch (message.Response.Status) 147using var document = JsonDocument.Parse(message.Response.ContentStream); 149return Response.FromValue(value, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 245switch (message.Response.Status) 250using var document = JsonDocument.Parse(message.Response.ContentStream); 252return Response.FromValue(value, message.Response); 255throw ClientDiagnostics.CreateRequestFailedException(message.Response); 307switch (message.Response.Status) 312using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 314return Response.FromValue(value, message.Response); 317return Response.FromValue((TemplateSpecData)null, message.Response); 319throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 347switch (message.Response.Status) 352using var document = JsonDocument.Parse(message.Response.ContentStream); 354return Response.FromValue(value, message.Response); 357return Response.FromValue((TemplateSpecData)null, message.Response); 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 406switch (message.Response.Status) 410return message.Response; 412throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 439switch (message.Response.Status) 443return message.Response; 445throw ClientDiagnostics.CreateRequestFailedException(message.Response); 484switch (message.Response.Status) 489using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 491return Response.FromValue(value, message.Response); 494throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 512switch (message.Response.Status) 517using var document = JsonDocument.Parse(message.Response.ContentStream); 519return Response.FromValue(value, message.Response); 522throw ClientDiagnostics.CreateRequestFailedException(message.Response); 568switch (message.Response.Status) 573using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 575return Response.FromValue(value, message.Response); 578throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 601switch (message.Response.Status) 606using var document = JsonDocument.Parse(message.Response.ContentStream); 608return Response.FromValue(value, message.Response); 611throw ClientDiagnostics.CreateRequestFailedException(message.Response); 648switch (message.Response.Status) 653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 655return Response.FromValue(value, message.Response); 658throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 681switch (message.Response.Status) 686using var document = JsonDocument.Parse(message.Response.ContentStream); 688return Response.FromValue(value, message.Response); 691throw ClientDiagnostics.CreateRequestFailedException(message.Response); 733switch (message.Response.Status) 738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 740return Response.FromValue(value, message.Response); 743throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 771switch (message.Response.Status) 776using var document = JsonDocument.Parse(message.Response.ContentStream); 778return Response.FromValue(value, message.Response); 781throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TemplateSpecVersionsRestOperations.cs (48)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 153switch (message.Response.Status) 159using var document = JsonDocument.Parse(message.Response.ContentStream); 161return Response.FromValue(value, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 226switch (message.Response.Status) 231using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 233return Response.FromValue(value, message.Response); 236throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 269switch (message.Response.Status) 274using var document = JsonDocument.Parse(message.Response.ContentStream); 276return Response.FromValue(value, message.Response); 279throw ClientDiagnostics.CreateRequestFailedException(message.Response); 333switch (message.Response.Status) 338using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((TemplateSpecVersionData)null, message.Response); 345throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 377switch (message.Response.Status) 382using var document = JsonDocument.Parse(message.Response.ContentStream); 384return Response.FromValue(value, message.Response); 387return Response.FromValue((TemplateSpecVersionData)null, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 447return message.Response; 449throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 481switch (message.Response.Status) 485return message.Response; 487throw ClientDiagnostics.CreateRequestFailedException(message.Response); 535switch (message.Response.Status) 540using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 542return Response.FromValue(value, message.Response); 545throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 572switch (message.Response.Status) 577using var document = JsonDocument.Parse(message.Response.ContentStream); 579return Response.FromValue(value, message.Response); 582throw ClientDiagnostics.CreateRequestFailedException(message.Response); 628switch (message.Response.Status) 633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 635return Response.FromValue(value, message.Response); 638throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 670switch (message.Response.Status) 675using var document = JsonDocument.Parse(message.Response.ContentStream); 677return Response.FromValue(value, message.Response); 680throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.Sql (4405)
Generated\RestOperations\BackupShortTermRetentionPoliciesRestOperations.cs (38)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((BackupShortTermRetentionPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((BackupShortTermRetentionPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 226return message.Response; 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 270return message.Response; 272throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 342return message.Response; 344throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 386return message.Response; 388throw ClientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 485switch (message.Response.Status) 490using var document = JsonDocument.Parse(message.Response.ContentStream); 492return Response.FromValue(value, message.Response); 495throw ClientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 593switch (message.Response.Status) 598using var document = JsonDocument.Parse(message.Response.ContentStream); 600return Response.FromValue(value, message.Response); 603throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CapabilitiesRestOperations.cs (8)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseAdvisorsRestOperations.cs (26)
102switch (message.Response.Status) 107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 114return Response.FromValue(value, message.Response); 117throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 162return Response.FromValue(value, message.Response); 165throw ClientDiagnostics.CreateRequestFailedException(message.Response); 226switch (message.Response.Status) 231using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 233return Response.FromValue(value, message.Response); 236return Response.FromValue((AdvisorData)null, message.Response); 238throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 275switch (message.Response.Status) 280using var document = JsonDocument.Parse(message.Response.ContentStream); 282return Response.FromValue(value, message.Response); 285return Response.FromValue((AdvisorData)null, message.Response); 287throw ClientDiagnostics.CreateRequestFailedException(message.Response); 357switch (message.Response.Status) 362using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 364return Response.FromValue(value, message.Response); 367throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 409switch (message.Response.Status) 414using var document = JsonDocument.Parse(message.Response.ContentStream); 416return Response.FromValue(value, message.Response); 419throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseAutomaticTuningRestOperations.cs (18)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((DatabaseAutomaticTuningData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((DatabaseAutomaticTuningData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 263switch (message.Response.Status) 268using var document = JsonDocument.Parse(message.Response.ContentStream); 270return Response.FromValue(value, message.Response); 273throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseBlobAuditingPoliciesRestOperations.cs (34)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((DatabaseBlobAuditingPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((DatabaseBlobAuditingPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 337switch (message.Response.Status) 342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 344return Response.FromValue(value, message.Response); 347throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 379switch (message.Response.Status) 384using var document = JsonDocument.Parse(message.Response.ContentStream); 386return Response.FromValue(value, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 447return Response.FromValue(value, message.Response); 450throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 487switch (message.Response.Status) 492using var document = JsonDocument.Parse(message.Response.ContentStream); 494return Response.FromValue(value, message.Response); 497throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseColumnsRestOperations.cs (42)
135switch (message.Response.Status) 140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 142return Response.FromValue(value, message.Response); 145throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 182switch (message.Response.Status) 187using var document = JsonDocument.Parse(message.Response.ContentStream); 189return Response.FromValue(value, message.Response); 192throw ClientDiagnostics.CreateRequestFailedException(message.Response); 266switch (message.Response.Status) 271using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 273return Response.FromValue(value, message.Response); 276throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 319switch (message.Response.Status) 324using var document = JsonDocument.Parse(message.Response.ContentStream); 326return Response.FromValue(value, message.Response); 329throw ClientDiagnostics.CreateRequestFailedException(message.Response); 404switch (message.Response.Status) 409using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 411return Response.FromValue(value, message.Response); 414return Response.FromValue((DatabaseColumnData)null, message.Response); 416throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 463switch (message.Response.Status) 468using var document = JsonDocument.Parse(message.Response.ContentStream); 470return Response.FromValue(value, message.Response); 473return Response.FromValue((DatabaseColumnData)null, message.Response); 475throw ClientDiagnostics.CreateRequestFailedException(message.Response); 531switch (message.Response.Status) 536using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 538return Response.FromValue(value, message.Response); 541throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 583switch (message.Response.Status) 588using var document = JsonDocument.Parse(message.Response.ContentStream); 590return Response.FromValue(value, message.Response); 593throw ClientDiagnostics.CreateRequestFailedException(message.Response); 655switch (message.Response.Status) 660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 662return Response.FromValue(value, message.Response); 665throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 713switch (message.Response.Status) 718using var document = JsonDocument.Parse(message.Response.ContentStream); 720return Response.FromValue(value, message.Response); 723throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseExtensionsRestOperations.cs (22)
112switch (message.Response.Status) 116return message.Response; 118throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 164return message.Response; 166throw ClientDiagnostics.CreateRequestFailedException(message.Response); 221switch (message.Response.Status) 226using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 228return Response.FromValue(value, message.Response); 231throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 263switch (message.Response.Status) 268using var document = JsonDocument.Parse(message.Response.ContentStream); 270return Response.FromValue(value, message.Response); 273throw ClientDiagnostics.CreateRequestFailedException(message.Response); 324switch (message.Response.Status) 329using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 331return Response.FromValue(value, message.Response); 334throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 371switch (message.Response.Status) 376using var document = JsonDocument.Parse(message.Response.ContentStream); 378return Response.FromValue(value, message.Response); 381throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseRecommendedActionsRestOperations.cs (26)
104switch (message.Response.Status) 109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 116return Response.FromValue(value, message.Response); 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 156switch (message.Response.Status) 161using var document = JsonDocument.Parse(message.Response.ContentStream); 168return Response.FromValue(value, message.Response); 171throw ClientDiagnostics.CreateRequestFailedException(message.Response); 239switch (message.Response.Status) 244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 246return Response.FromValue(value, message.Response); 249return Response.FromValue((RecommendedActionData)null, message.Response); 251throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 293switch (message.Response.Status) 298using var document = JsonDocument.Parse(message.Response.ContentStream); 300return Response.FromValue(value, message.Response); 303return Response.FromValue((RecommendedActionData)null, message.Response); 305throw ClientDiagnostics.CreateRequestFailedException(message.Response); 382switch (message.Response.Status) 387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 389return Response.FromValue(value, message.Response); 392throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 439switch (message.Response.Status) 444using var document = JsonDocument.Parse(message.Response.ContentStream); 446return Response.FromValue(value, message.Response); 449throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseRestOperations.cs (22)
99switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 244using var document = JsonDocument.Parse(message.Response.ContentStream); 246return Response.FromValue(value, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 307return Response.FromValue(value, message.Response); 310throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 347switch (message.Response.Status) 352using var document = JsonDocument.Parse(message.Response.ContentStream); 354return Response.FromValue(value, message.Response); 357throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseSchemasRestOperations.cs (26)
102switch (message.Response.Status) 107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 109return Response.FromValue(value, message.Response); 112throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw ClientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((DatabaseSchemaData)null, message.Response); 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 270using var document = JsonDocument.Parse(message.Response.ContentStream); 272return Response.FromValue(value, message.Response); 275return Response.FromValue((DatabaseSchemaData)null, message.Response); 277throw ClientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 336return Response.FromValue(value, message.Response); 339throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 377switch (message.Response.Status) 382using var document = JsonDocument.Parse(message.Response.ContentStream); 384return Response.FromValue(value, message.Response); 387throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseSecurityAlertPoliciesRestOperations.cs (34)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((DatabaseSecurityAlertPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((DatabaseSecurityAlertPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 337switch (message.Response.Status) 342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 344return Response.FromValue(value, message.Response); 347throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 379switch (message.Response.Status) 384using var document = JsonDocument.Parse(message.Response.ContentStream); 386return Response.FromValue(value, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 447return Response.FromValue(value, message.Response); 450throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 487switch (message.Response.Status) 492using var document = JsonDocument.Parse(message.Response.ContentStream); 494return Response.FromValue(value, message.Response); 497throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabasesRestOperations.cs (134)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 222return Response.FromValue(value, message.Response); 225throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw ClientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 327return Response.FromValue(value, message.Response); 330throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363using var document = JsonDocument.Parse(message.Response.ContentStream); 365return Response.FromValue(value, message.Response); 368throw ClientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432return Response.FromValue((SqlDatabaseData)null, message.Response); 434throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 466switch (message.Response.Status) 471using var document = JsonDocument.Parse(message.Response.ContentStream); 473return Response.FromValue(value, message.Response); 476return Response.FromValue((SqlDatabaseData)null, message.Response); 478throw ClientDiagnostics.CreateRequestFailedException(message.Response); 541switch (message.Response.Status) 546return message.Response; 548throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590return message.Response; 592throw ClientDiagnostics.CreateRequestFailedException(message.Response); 645switch (message.Response.Status) 650return message.Response; 652throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 684switch (message.Response.Status) 689return message.Response; 691throw ClientDiagnostics.CreateRequestFailedException(message.Response); 754switch (message.Response.Status) 758return message.Response; 760throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 797switch (message.Response.Status) 801return message.Response; 803throw ClientDiagnostics.CreateRequestFailedException(message.Response); 858switch (message.Response.Status) 863using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 865return Response.FromValue(value, message.Response); 868throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 900switch (message.Response.Status) 905using var document = JsonDocument.Parse(message.Response.ContentStream); 907return Response.FromValue(value, message.Response); 910throw ClientDiagnostics.CreateRequestFailedException(message.Response); 969switch (message.Response.Status) 973return message.Response; 975throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1008switch (message.Response.Status) 1012return message.Response; 1014throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1062switch (message.Response.Status) 1067using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1069return Response.FromValue(value, message.Response); 1072throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1099switch (message.Response.Status) 1104using var document = JsonDocument.Parse(message.Response.ContentStream); 1106return Response.FromValue(value, message.Response); 1109throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1164switch (message.Response.Status) 1168return message.Response; 1170throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1202switch (message.Response.Status) 1206return message.Response; 1208throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1263switch (message.Response.Status) 1267return message.Response; 1269throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1301switch (message.Response.Status) 1305return message.Response; 1307throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1361switch (message.Response.Status) 1365return message.Response; 1367throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1399switch (message.Response.Status) 1403return message.Response; 1405throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1468switch (message.Response.Status) 1471return message.Response; 1473throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1510switch (message.Response.Status) 1513return message.Response; 1515throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1579switch (message.Response.Status) 1583return message.Response; 1585throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1622switch (message.Response.Status) 1626return message.Response; 1628throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1692switch (message.Response.Status) 1696return message.Response; 1698throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1735switch (message.Response.Status) 1739return message.Response; 1741throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1788switch (message.Response.Status) 1793using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1795return Response.FromValue(value, message.Response); 1798throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1831switch (message.Response.Status) 1836using var document = JsonDocument.Parse(message.Response.ContentStream); 1838return Response.FromValue(value, message.Response); 1841throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1892switch (message.Response.Status) 1897using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1899return Response.FromValue(value, message.Response); 1902throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1939switch (message.Response.Status) 1944using var document = JsonDocument.Parse(message.Response.ContentStream); 1946return Response.FromValue(value, message.Response); 1949throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1995switch (message.Response.Status) 2000using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2002return Response.FromValue(value, message.Response); 2005throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2037switch (message.Response.Status) 2042using var document = JsonDocument.Parse(message.Response.ContentStream); 2044return Response.FromValue(value, message.Response); 2047throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseTablesRestOperations.cs (26)
109switch (message.Response.Status) 114using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 116return Response.FromValue(value, message.Response); 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 157switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw ClientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((DatabaseTableData)null, message.Response); 247throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294using var document = JsonDocument.Parse(message.Response.ContentStream); 296return Response.FromValue(value, message.Response); 299return Response.FromValue((DatabaseTableData)null, message.Response); 301throw ClientDiagnostics.CreateRequestFailedException(message.Response); 358switch (message.Response.Status) 363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 365return Response.FromValue(value, message.Response); 368throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 411switch (message.Response.Status) 416using var document = JsonDocument.Parse(message.Response.ContentStream); 418return Response.FromValue(value, message.Response); 421throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseUsagesRestOperations.cs (16)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 207return Response.FromValue(value, message.Response); 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 252using var document = JsonDocument.Parse(message.Response.ContentStream); 254return Response.FromValue(value, message.Response); 257throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs (24)
109switch (message.Response.Status) 114using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 116return Response.FromValue(value, message.Response); 119return Response.FromValue((DatabaseVulnerabilityAssessmentRuleBaselineData)null, message.Response); 121throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170return Response.FromValue((DatabaseVulnerabilityAssessmentRuleBaselineData)null, message.Response); 172throw ClientDiagnostics.CreateRequestFailedException(message.Response); 248switch (message.Response.Status) 253using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 255return Response.FromValue(value, message.Response); 258throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 302switch (message.Response.Status) 307using var document = JsonDocument.Parse(message.Response.ContentStream); 309return Response.FromValue(value, message.Response); 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 378switch (message.Response.Status) 381return message.Response; 383throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422switch (message.Response.Status) 425return message.Response; 427throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseVulnerabilityAssessmentScansRestOperations.cs (40)
106switch (message.Response.Status) 110return message.Response; 112throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 154return message.Response; 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 214switch (message.Response.Status) 219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 221return Response.FromValue(value, message.Response); 224throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw ClientDiagnostics.CreateRequestFailedException(message.Response); 331switch (message.Response.Status) 336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 338return Response.FromValue(value, message.Response); 341return Response.FromValue((VulnerabilityAssessmentScanRecordData)null, message.Response); 343throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 381switch (message.Response.Status) 386using var document = JsonDocument.Parse(message.Response.ContentStream); 388return Response.FromValue(value, message.Response); 391return Response.FromValue((VulnerabilityAssessmentScanRecordData)null, message.Response); 393throw ClientDiagnostics.CreateRequestFailedException(message.Response); 458switch (message.Response.Status) 464using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 466return Response.FromValue(value, message.Response); 469throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 513using var document = JsonDocument.Parse(message.Response.ContentStream); 515return Response.FromValue(value, message.Response); 518throw ClientDiagnostics.CreateRequestFailedException(message.Response); 570switch (message.Response.Status) 575using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 577return Response.FromValue(value, message.Response); 580throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 618switch (message.Response.Status) 623using var document = JsonDocument.Parse(message.Response.ContentStream); 625return Response.FromValue(value, message.Response); 628throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DatabaseVulnerabilityAssessmentsRestOperations.cs (40)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((DatabaseVulnerabilityAssessmentData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((DatabaseVulnerabilityAssessmentData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 341return message.Response; 343throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 379return message.Response; 381throw ClientDiagnostics.CreateRequestFailedException(message.Response); 436switch (message.Response.Status) 441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 443return Response.FromValue(value, message.Response); 446throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 478switch (message.Response.Status) 483using var document = JsonDocument.Parse(message.Response.ContentStream); 485return Response.FromValue(value, message.Response); 488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 546return Response.FromValue(value, message.Response); 549throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DataMaskingPoliciesRestOperations.cs (18)
106switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 153switch (message.Response.Status) 158using var document = JsonDocument.Parse(message.Response.ContentStream); 160return Response.FromValue(value, message.Response); 163throw ClientDiagnostics.CreateRequestFailedException(message.Response); 219switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229return Response.FromValue((DataMaskingPolicyData)null, message.Response); 231throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 263switch (message.Response.Status) 268using var document = JsonDocument.Parse(message.Response.ContentStream); 270return Response.FromValue(value, message.Response); 273return Response.FromValue((DataMaskingPolicyData)null, message.Response); 275throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DataMaskingRulesRestOperations.cs (16)
114switch (message.Response.Status) 120using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 122return Response.FromValue(value, message.Response); 125throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 167switch (message.Response.Status) 173using var document = JsonDocument.Parse(message.Response.ContentStream); 175return Response.FromValue(value, message.Response); 178throw ClientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 242return Response.FromValue(value, message.Response); 245throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 277switch (message.Response.Status) 282using var document = JsonDocument.Parse(message.Response.ContentStream); 284return Response.FromValue(value, message.Response); 287throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DataWarehouseUserActivitiesRestOperations.cs (26)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((DataWarehouseUserActivitiesData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((DataWarehouseUserActivitiesData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 211switch (message.Response.Status) 216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 218return Response.FromValue(value, message.Response); 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 253switch (message.Response.Status) 258using var document = JsonDocument.Parse(message.Response.ContentStream); 260return Response.FromValue(value, message.Response); 263throw ClientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 321return Response.FromValue(value, message.Response); 324throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 361switch (message.Response.Status) 366using var document = JsonDocument.Parse(message.Response.ContentStream); 368return Response.FromValue(value, message.Response); 371throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeletedServersRestOperations.cs (48)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 160switch (message.Response.Status) 165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 167return Response.FromValue(value, message.Response); 170return Response.FromValue((DeletedServerData)null, message.Response); 172throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 199switch (message.Response.Status) 204using var document = JsonDocument.Parse(message.Response.ContentStream); 206return Response.FromValue(value, message.Response); 209return Response.FromValue((DeletedServerData)null, message.Response); 211throw ClientDiagnostics.CreateRequestFailedException(message.Response); 252switch (message.Response.Status) 257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 259return Response.FromValue(value, message.Response); 262throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 284switch (message.Response.Status) 289using var document = JsonDocument.Parse(message.Response.ContentStream); 291return Response.FromValue(value, message.Response); 294throw ClientDiagnostics.CreateRequestFailedException(message.Response); 342switch (message.Response.Status) 346return message.Response; 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 375switch (message.Response.Status) 379return message.Response; 381throw ClientDiagnostics.CreateRequestFailedException(message.Response); 417switch (message.Response.Status) 422using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 424return Response.FromValue(value, message.Response); 427throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 449switch (message.Response.Status) 454using var document = JsonDocument.Parse(message.Response.ContentStream); 456return Response.FromValue(value, message.Response); 459throw ClientDiagnostics.CreateRequestFailedException(message.Response); 500switch (message.Response.Status) 505using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 507return Response.FromValue(value, message.Response); 510throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 537switch (message.Response.Status) 542using var document = JsonDocument.Parse(message.Response.ContentStream); 544return Response.FromValue(value, message.Response); 547throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ElasticPoolActivitiesRestOperations.cs (8)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ElasticPoolDatabaseActivitiesRestOperations.cs (8)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ElasticPoolRestOperations.cs (22)
99switch (message.Response.Status) 102return message.Response; 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 137switch (message.Response.Status) 140return message.Response; 142throw ClientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 244using var document = JsonDocument.Parse(message.Response.ContentStream); 246return Response.FromValue(value, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 307return Response.FromValue(value, message.Response); 310throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 347switch (message.Response.Status) 352using var document = JsonDocument.Parse(message.Response.ContentStream); 354return Response.FromValue(value, message.Response); 357throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ElasticPoolsRestOperations.cs (66)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 222return Response.FromValue(value, message.Response); 225throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262using var document = JsonDocument.Parse(message.Response.ContentStream); 264return Response.FromValue(value, message.Response); 267throw ClientDiagnostics.CreateRequestFailedException(message.Response); 320switch (message.Response.Status) 325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 327return Response.FromValue(value, message.Response); 330throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363using var document = JsonDocument.Parse(message.Response.ContentStream); 365return Response.FromValue(value, message.Response); 368throw ClientDiagnostics.CreateRequestFailedException(message.Response); 422switch (message.Response.Status) 427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 429return Response.FromValue(value, message.Response); 432return Response.FromValue((ElasticPoolData)null, message.Response); 434throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 466switch (message.Response.Status) 471using var document = JsonDocument.Parse(message.Response.ContentStream); 473return Response.FromValue(value, message.Response); 476return Response.FromValue((ElasticPoolData)null, message.Response); 478throw ClientDiagnostics.CreateRequestFailedException(message.Response); 541switch (message.Response.Status) 546return message.Response; 548throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590return message.Response; 592throw ClientDiagnostics.CreateRequestFailedException(message.Response); 645switch (message.Response.Status) 650return message.Response; 652throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 684switch (message.Response.Status) 689return message.Response; 691throw ClientDiagnostics.CreateRequestFailedException(message.Response); 754switch (message.Response.Status) 758return message.Response; 760throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 797switch (message.Response.Status) 801return message.Response; 803throw ClientDiagnostics.CreateRequestFailedException(message.Response); 857switch (message.Response.Status) 861return message.Response; 863throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 895switch (message.Response.Status) 899return message.Response; 901throw ClientDiagnostics.CreateRequestFailedException(message.Response); 948switch (message.Response.Status) 953using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 955return Response.FromValue(value, message.Response); 958throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 991switch (message.Response.Status) 996using var document = JsonDocument.Parse(message.Response.ContentStream); 998return Response.FromValue(value, message.Response); 1001throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EncryptionProtectorsRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((EncryptionProtectorData)null, message.Response); 199throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 227switch (message.Response.Status) 232using var document = JsonDocument.Parse(message.Response.ContentStream); 234return Response.FromValue(value, message.Response); 237return Response.FromValue((EncryptionProtectorData)null, message.Response); 239throw ClientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 302return message.Response; 304throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 337switch (message.Response.Status) 341return message.Response; 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 397return message.Response; 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 431return message.Response; 433throw ClientDiagnostics.CreateRequestFailedException(message.Response); 479switch (message.Response.Status) 484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 486return Response.FromValue(value, message.Response); 489throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 521switch (message.Response.Status) 526using var document = JsonDocument.Parse(message.Response.ContentStream); 528return Response.FromValue(value, message.Response); 531throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExtendedDatabaseBlobAuditingPoliciesRestOperations.cs (34)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((ExtendedDatabaseBlobAuditingPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((ExtendedDatabaseBlobAuditingPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 337switch (message.Response.Status) 342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 344return Response.FromValue(value, message.Response); 347throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 379switch (message.Response.Status) 384using var document = JsonDocument.Parse(message.Response.ContentStream); 386return Response.FromValue(value, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 447return Response.FromValue(value, message.Response); 450throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 487switch (message.Response.Status) 492using var document = JsonDocument.Parse(message.Response.ContentStream); 494return Response.FromValue(value, message.Response); 497throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExtendedServerBlobAuditingPoliciesRestOperations.cs (32)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ExtendedServerBlobAuditingPolicyData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ExtendedServerBlobAuditingPolicyData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 207return message.Response; 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242switch (message.Response.Status) 246return message.Response; 248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 436using var document = JsonDocument.Parse(message.Response.ContentStream); 438return Response.FromValue(value, message.Response); 441throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FailoverGroupsRestOperations.cs (56)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((FailoverGroupData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((FailoverGroupData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220return message.Response; 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363return message.Response; 365throw ClientDiagnostics.CreateRequestFailedException(message.Response); 428switch (message.Response.Status) 432return message.Response; 434throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 471switch (message.Response.Status) 475return message.Response; 477throw ClientDiagnostics.CreateRequestFailedException(message.Response); 525switch (message.Response.Status) 530using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 532return Response.FromValue(value, message.Response); 535throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 562switch (message.Response.Status) 567using var document = JsonDocument.Parse(message.Response.ContentStream); 569return Response.FromValue(value, message.Response); 572throw ClientDiagnostics.CreateRequestFailedException(message.Response); 627switch (message.Response.Status) 631return message.Response; 633throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 665switch (message.Response.Status) 669return message.Response; 671throw ClientDiagnostics.CreateRequestFailedException(message.Response); 726switch (message.Response.Status) 730return message.Response; 732throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 764switch (message.Response.Status) 768return message.Response; 770throw ClientDiagnostics.CreateRequestFailedException(message.Response); 816switch (message.Response.Status) 821using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 823return Response.FromValue(value, message.Response); 826throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 858switch (message.Response.Status) 863using var document = JsonDocument.Parse(message.Response.ContentStream); 865return Response.FromValue(value, message.Response); 868throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FirewallRulesRestOperations.cs (50)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((FirewallRuleData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((FirewallRuleData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 263switch (message.Response.Status) 269using var document = JsonDocument.Parse(message.Response.ContentStream); 271return Response.FromValue(value, message.Response); 274throw ClientDiagnostics.CreateRequestFailedException(message.Response); 327switch (message.Response.Status) 331return message.Response; 333throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 369return message.Response; 371throw ClientDiagnostics.CreateRequestFailedException(message.Response); 419switch (message.Response.Status) 424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 426return Response.FromValue(value, message.Response); 429throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 456switch (message.Response.Status) 461using var document = JsonDocument.Parse(message.Response.ContentStream); 463return Response.FromValue(value, message.Response); 466throw ClientDiagnostics.CreateRequestFailedException(message.Response); 523switch (message.Response.Status) 528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 530return Response.FromValue(value, message.Response); 533return Response.FromValue((FirewallRuleData)null, message.Response); 535throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567switch (message.Response.Status) 572using var document = JsonDocument.Parse(message.Response.ContentStream); 574return Response.FromValue(value, message.Response); 577return Response.FromValue((FirewallRuleData)null, message.Response); 579throw ClientDiagnostics.CreateRequestFailedException(message.Response); 625switch (message.Response.Status) 630using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 632return Response.FromValue(value, message.Response); 635throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 667switch (message.Response.Status) 672using var document = JsonDocument.Parse(message.Response.ContentStream); 674return Response.FromValue(value, message.Response); 677throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GeoBackupPoliciesRestOperations.cs (26)
108switch (message.Response.Status) 114using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 116return Response.FromValue(value, message.Response); 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 157switch (message.Response.Status) 163using var document = JsonDocument.Parse(message.Response.ContentStream); 165return Response.FromValue(value, message.Response); 168throw ClientDiagnostics.CreateRequestFailedException(message.Response); 225switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return Response.FromValue(value, message.Response); 235return Response.FromValue((GeoBackupPolicyData)null, message.Response); 237throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 270switch (message.Response.Status) 275using var document = JsonDocument.Parse(message.Response.ContentStream); 277return Response.FromValue(value, message.Response); 280return Response.FromValue((GeoBackupPolicyData)null, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 337switch (message.Response.Status) 342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 344return Response.FromValue(value, message.Response); 347throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 379switch (message.Response.Status) 384using var document = JsonDocument.Parse(message.Response.ContentStream); 386return Response.FromValue(value, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InstanceFailoverGroupsRestOperations.cs (50)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((InstanceFailoverGroupData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((InstanceFailoverGroupData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220return message.Response; 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363return message.Response; 365throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455using var document = JsonDocument.Parse(message.Response.ContentStream); 457return Response.FromValue(value, message.Response); 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 515switch (message.Response.Status) 519return message.Response; 521throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 557return message.Response; 559throw ClientDiagnostics.CreateRequestFailedException(message.Response); 614switch (message.Response.Status) 618return message.Response; 620throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 652switch (message.Response.Status) 656return message.Response; 658throw ClientDiagnostics.CreateRequestFailedException(message.Response); 704switch (message.Response.Status) 709using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 711return Response.FromValue(value, message.Response); 714throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 746switch (message.Response.Status) 751using var document = JsonDocument.Parse(message.Response.ContentStream); 753return Response.FromValue(value, message.Response); 756throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InstancePoolsRestOperations.cs (60)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((InstancePoolData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((InstancePoolData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 201return message.Response; 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240return message.Response; 242throw ClientDiagnostics.CreateRequestFailedException(message.Response); 288switch (message.Response.Status) 293return message.Response; 295throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 327return message.Response; 329throw ClientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 389return message.Response; 391throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 423switch (message.Response.Status) 427return message.Response; 429throw ClientDiagnostics.CreateRequestFailedException(message.Response); 470switch (message.Response.Status) 475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 477return Response.FromValue(value, message.Response); 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 502switch (message.Response.Status) 507using var document = JsonDocument.Parse(message.Response.ContentStream); 509return Response.FromValue(value, message.Response); 512throw ClientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 573switch (message.Response.Status) 578using var document = JsonDocument.Parse(message.Response.ContentStream); 580return Response.FromValue(value, message.Response); 583throw ClientDiagnostics.CreateRequestFailedException(message.Response); 624switch (message.Response.Status) 629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 631return Response.FromValue(value, message.Response); 634throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 661switch (message.Response.Status) 666using var document = JsonDocument.Parse(message.Response.ContentStream); 668return Response.FromValue(value, message.Response); 671throw ClientDiagnostics.CreateRequestFailedException(message.Response); 707switch (message.Response.Status) 712using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 714return Response.FromValue(value, message.Response); 717throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 739switch (message.Response.Status) 744using var document = JsonDocument.Parse(message.Response.ContentStream); 746return Response.FromValue(value, message.Response); 749throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobAgentsRestOperations.cs (44)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((JobAgentData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((JobAgentData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 315return message.Response; 317throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 354switch (message.Response.Status) 359return message.Response; 361throw ClientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 419return message.Response; 421throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 458return message.Response; 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 523switch (message.Response.Status) 527return message.Response; 529throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 570return message.Response; 572throw ClientDiagnostics.CreateRequestFailedException(message.Response); 618switch (message.Response.Status) 623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 625return Response.FromValue(value, message.Response); 628throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 660switch (message.Response.Status) 665using var document = JsonDocument.Parse(message.Response.ContentStream); 667return Response.FromValue(value, message.Response); 670throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobCredentialsRestOperations.cs (40)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220return Response.FromValue((JobCredentialData)null, message.Response); 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269return Response.FromValue((JobCredentialData)null, message.Response); 271throw ClientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 349return Response.FromValue(value, message.Response); 352throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 400using var document = JsonDocument.Parse(message.Response.ContentStream); 402return Response.FromValue(value, message.Response); 405throw ClientDiagnostics.CreateRequestFailedException(message.Response); 465switch (message.Response.Status) 469return message.Response; 471throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 512return message.Response; 514throw ClientDiagnostics.CreateRequestFailedException(message.Response); 565switch (message.Response.Status) 570using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 572return Response.FromValue(value, message.Response); 575throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 617using var document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobExecutionsRestOperations.cs (60)
132switch (message.Response.Status) 137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 139return Response.FromValue(value, message.Response); 142throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 181switch (message.Response.Status) 186using var document = JsonDocument.Parse(message.Response.ContentStream); 188return Response.FromValue(value, message.Response); 191throw ClientDiagnostics.CreateRequestFailedException(message.Response); 255switch (message.Response.Status) 258return message.Response; 260throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298switch (message.Response.Status) 301return message.Response; 303throw ClientDiagnostics.CreateRequestFailedException(message.Response); 365switch (message.Response.Status) 369return message.Response; 371throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 408switch (message.Response.Status) 412return message.Response; 414throw ClientDiagnostics.CreateRequestFailedException(message.Response); 511switch (message.Response.Status) 516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 518return Response.FromValue(value, message.Response); 521throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 565switch (message.Response.Status) 570using var document = JsonDocument.Parse(message.Response.ContentStream); 572return Response.FromValue(value, message.Response); 575throw ClientDiagnostics.CreateRequestFailedException(message.Response); 639switch (message.Response.Status) 644using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 646return Response.FromValue(value, message.Response); 649return Response.FromValue((JobExecutionData)null, message.Response); 651throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 689switch (message.Response.Status) 694using var document = JsonDocument.Parse(message.Response.ContentStream); 696return Response.FromValue(value, message.Response); 699return Response.FromValue((JobExecutionData)null, message.Response); 701throw ClientDiagnostics.CreateRequestFailedException(message.Response); 765switch (message.Response.Status) 770return message.Response; 772throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 810switch (message.Response.Status) 815return message.Response; 817throw ClientDiagnostics.CreateRequestFailedException(message.Response); 875switch (message.Response.Status) 880using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 882return Response.FromValue(value, message.Response); 885throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 929switch (message.Response.Status) 934using var document = JsonDocument.Parse(message.Response.ContentStream); 936return Response.FromValue(value, message.Response); 939throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1002switch (message.Response.Status) 1007using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1009return Response.FromValue(value, message.Response); 1012throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1061switch (message.Response.Status) 1066using var document = JsonDocument.Parse(message.Response.ContentStream); 1068return Response.FromValue(value, message.Response); 1071throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobsRestOperations.cs (40)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220return Response.FromValue((SqlJobData)null, message.Response); 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269return Response.FromValue((SqlJobData)null, message.Response); 271throw ClientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 349return Response.FromValue(value, message.Response); 352throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 400using var document = JsonDocument.Parse(message.Response.ContentStream); 402return Response.FromValue(value, message.Response); 405throw ClientDiagnostics.CreateRequestFailedException(message.Response); 465switch (message.Response.Status) 469return message.Response; 471throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 512return message.Response; 514throw ClientDiagnostics.CreateRequestFailedException(message.Response); 565switch (message.Response.Status) 570using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 572return Response.FromValue(value, message.Response); 575throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 617using var document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobStepExecutionsRestOperations.cs (26)
142switch (message.Response.Status) 147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 149return Response.FromValue(value, message.Response); 152throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207throw ClientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 285return Response.FromValue(value, message.Response); 288return Response.FromValue((JobExecutionData)null, message.Response); 290throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343return Response.FromValue((JobExecutionData)null, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response); 409switch (message.Response.Status) 414using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 416return Response.FromValue(value, message.Response); 419throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 469switch (message.Response.Status) 474using var document = JsonDocument.Parse(message.Response.ContentStream); 476return Response.FromValue(value, message.Response); 479throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobStepsRestOperations.cs (66)
107switch (message.Response.Status) 112using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 114return Response.FromValue(value, message.Response); 117throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 155switch (message.Response.Status) 160using var document = JsonDocument.Parse(message.Response.ContentStream); 162return Response.FromValue(value, message.Response); 165throw ClientDiagnostics.CreateRequestFailedException(message.Response); 236switch (message.Response.Status) 241using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 243return Response.FromValue(value, message.Response); 246return Response.FromValue((JobStepData)null, message.Response); 248throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 291switch (message.Response.Status) 296using var document = JsonDocument.Parse(message.Response.ContentStream); 298return Response.FromValue(value, message.Response); 301return Response.FromValue((JobStepData)null, message.Response); 303throw ClientDiagnostics.CreateRequestFailedException(message.Response); 365switch (message.Response.Status) 370using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 372return Response.FromValue(value, message.Response); 375throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 412switch (message.Response.Status) 417using var document = JsonDocument.Parse(message.Response.ContentStream); 419return Response.FromValue(value, message.Response); 422throw ClientDiagnostics.CreateRequestFailedException(message.Response); 490switch (message.Response.Status) 495using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 497return Response.FromValue(value, message.Response); 500return Response.FromValue((JobStepData)null, message.Response); 502throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 544switch (message.Response.Status) 549using var document = JsonDocument.Parse(message.Response.ContentStream); 551return Response.FromValue(value, message.Response); 554return Response.FromValue((JobStepData)null, message.Response); 556throw ClientDiagnostics.CreateRequestFailedException(message.Response); 633switch (message.Response.Status) 639using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 641return Response.FromValue(value, message.Response); 644throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 691switch (message.Response.Status) 697using var document = JsonDocument.Parse(message.Response.ContentStream); 699return Response.FromValue(value, message.Response); 702throw ClientDiagnostics.CreateRequestFailedException(message.Response); 769switch (message.Response.Status) 773return message.Response; 775throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 817switch (message.Response.Status) 821return message.Response; 823throw ClientDiagnostics.CreateRequestFailedException(message.Response); 880switch (message.Response.Status) 885using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 887return Response.FromValue(value, message.Response); 890throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 933switch (message.Response.Status) 938using var document = JsonDocument.Parse(message.Response.ContentStream); 940return Response.FromValue(value, message.Response); 943throw ClientDiagnostics.CreateRequestFailedException(message.Response); 999switch (message.Response.Status) 1004using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1006return Response.FromValue(value, message.Response); 1009throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1051switch (message.Response.Status) 1056using var document = JsonDocument.Parse(message.Response.ContentStream); 1058return Response.FromValue(value, message.Response); 1061throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobTargetExecutionsRestOperations.cs (42)
142switch (message.Response.Status) 147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 149return Response.FromValue(value, message.Response); 152throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197switch (message.Response.Status) 202using var document = JsonDocument.Parse(message.Response.ContentStream); 204return Response.FromValue(value, message.Response); 207throw ClientDiagnostics.CreateRequestFailedException(message.Response); 314switch (message.Response.Status) 319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 321return Response.FromValue(value, message.Response); 324throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 374switch (message.Response.Status) 379using var document = JsonDocument.Parse(message.Response.ContentStream); 381return Response.FromValue(value, message.Response); 384throw ClientDiagnostics.CreateRequestFailedException(message.Response); 458switch (message.Response.Status) 463using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 465return Response.FromValue(value, message.Response); 468return Response.FromValue((JobExecutionData)null, message.Response); 470throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524return Response.FromValue((JobExecutionData)null, message.Response); 526throw ClientDiagnostics.CreateRequestFailedException(message.Response); 590switch (message.Response.Status) 595using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 597return Response.FromValue(value, message.Response); 600throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 650switch (message.Response.Status) 655using var document = JsonDocument.Parse(message.Response.ContentStream); 657return Response.FromValue(value, message.Response); 660throw ClientDiagnostics.CreateRequestFailedException(message.Response); 729switch (message.Response.Status) 734using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 736return Response.FromValue(value, message.Response); 739throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 794switch (message.Response.Status) 799using var document = JsonDocument.Parse(message.Response.ContentStream); 801return Response.FromValue(value, message.Response); 804throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobTargetGroupsRestOperations.cs (40)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 217return Response.FromValue(value, message.Response); 220return Response.FromValue((JobTargetGroupData)null, message.Response); 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264using var document = JsonDocument.Parse(message.Response.ContentStream); 266return Response.FromValue(value, message.Response); 269return Response.FromValue((JobTargetGroupData)null, message.Response); 271throw ClientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 349return Response.FromValue(value, message.Response); 352throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 400using var document = JsonDocument.Parse(message.Response.ContentStream); 402return Response.FromValue(value, message.Response); 405throw ClientDiagnostics.CreateRequestFailedException(message.Response); 465switch (message.Response.Status) 469return message.Response; 471throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 512return message.Response; 514throw ClientDiagnostics.CreateRequestFailedException(message.Response); 565switch (message.Response.Status) 570using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 572return Response.FromValue(value, message.Response); 575throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 612switch (message.Response.Status) 617using var document = JsonDocument.Parse(message.Response.ContentStream); 619return Response.FromValue(value, message.Response); 622throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JobVersionsRestOperations.cs (26)
104switch (message.Response.Status) 109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 111return Response.FromValue(value, message.Response); 114throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161throw ClientDiagnostics.CreateRequestFailedException(message.Response); 225switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return Response.FromValue(value, message.Response); 235return Response.FromValue((JobVersionData)null, message.Response); 237throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 275switch (message.Response.Status) 280using var document = JsonDocument.Parse(message.Response.ContentStream); 282return Response.FromValue(value, message.Response); 285return Response.FromValue((JobVersionData)null, message.Response); 287throw ClientDiagnostics.CreateRequestFailedException(message.Response); 343switch (message.Response.Status) 348using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 350return Response.FromValue(value, message.Response); 353throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 395switch (message.Response.Status) 400using var document = JsonDocument.Parse(message.Response.ContentStream); 402return Response.FromValue(value, message.Response); 405throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LedgerDigestUploadsRestOperations.cs (38)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((LedgerDigestUploadsData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((LedgerDigestUploadsData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 226return message.Response; 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 270return message.Response; 272throw ClientDiagnostics.CreateRequestFailedException(message.Response); 327switch (message.Response.Status) 332using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 334return Response.FromValue(value, message.Response); 337throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 369switch (message.Response.Status) 374using var document = JsonDocument.Parse(message.Response.ContentStream); 376return Response.FromValue(value, message.Response); 379throw ClientDiagnostics.CreateRequestFailedException(message.Response); 437switch (message.Response.Status) 441return message.Response; 443throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 476switch (message.Response.Status) 480return message.Response; 482throw ClientDiagnostics.CreateRequestFailedException(message.Response); 533switch (message.Response.Status) 538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 540return Response.FromValue(value, message.Response); 543throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 580switch (message.Response.Status) 585using var document = JsonDocument.Parse(message.Response.ContentStream); 587return Response.FromValue(value, message.Response); 590throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LongTermRetentionBackupsRestOperations.cs (152)
113switch (message.Response.Status) 117return message.Response; 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 161switch (message.Response.Status) 165return message.Response; 167throw ClientDiagnostics.CreateRequestFailedException(message.Response); 238switch (message.Response.Status) 242return message.Response; 244throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 286switch (message.Response.Status) 290return message.Response; 292throw ClientDiagnostics.CreateRequestFailedException(message.Response); 353switch (message.Response.Status) 358using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 360return Response.FromValue(value, message.Response); 363return Response.FromValue((LongTermRetentionBackupData)null, message.Response); 365throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 402switch (message.Response.Status) 407using var document = JsonDocument.Parse(message.Response.ContentStream); 409return Response.FromValue(value, message.Response); 412return Response.FromValue((LongTermRetentionBackupData)null, message.Response); 414throw ClientDiagnostics.CreateRequestFailedException(message.Response); 474switch (message.Response.Status) 478return message.Response; 480throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 517switch (message.Response.Status) 521return message.Response; 523throw ClientDiagnostics.CreateRequestFailedException(message.Response); 588switch (message.Response.Status) 593using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 595return Response.FromValue(value, message.Response); 598throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 632switch (message.Response.Status) 637using var document = JsonDocument.Parse(message.Response.ContentStream); 639return Response.FromValue(value, message.Response); 642throw ClientDiagnostics.CreateRequestFailedException(message.Response); 693switch (message.Response.Status) 698using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 700return Response.FromValue(value, message.Response); 703throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 727switch (message.Response.Status) 732using var document = JsonDocument.Parse(message.Response.ContentStream); 734return Response.FromValue(value, message.Response); 737throw ClientDiagnostics.CreateRequestFailedException(message.Response); 795switch (message.Response.Status) 800using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 802return Response.FromValue(value, message.Response); 805throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 834switch (message.Response.Status) 839using var document = JsonDocument.Parse(message.Response.ContentStream); 841return Response.FromValue(value, message.Response); 844throw ClientDiagnostics.CreateRequestFailedException(message.Response); 922switch (message.Response.Status) 926return message.Response; 928throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 975switch (message.Response.Status) 979return message.Response; 981throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1059switch (message.Response.Status) 1063return message.Response; 1065throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1112switch (message.Response.Status) 1116return message.Response; 1118throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1186switch (message.Response.Status) 1191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1193return Response.FromValue(value, message.Response); 1196return Response.FromValue((LongTermRetentionBackupData)null, message.Response); 1198throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1240switch (message.Response.Status) 1245using var document = JsonDocument.Parse(message.Response.ContentStream); 1247return Response.FromValue(value, message.Response); 1250return Response.FromValue((LongTermRetentionBackupData)null, message.Response); 1252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1319switch (message.Response.Status) 1323return message.Response; 1325throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1367switch (message.Response.Status) 1371return message.Response; 1373throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1445switch (message.Response.Status) 1450using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1452return Response.FromValue(value, message.Response); 1455throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1494switch (message.Response.Status) 1499using var document = JsonDocument.Parse(message.Response.ContentStream); 1501return Response.FromValue(value, message.Response); 1504throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1562switch (message.Response.Status) 1567using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1569return Response.FromValue(value, message.Response); 1572throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1601switch (message.Response.Status) 1606using var document = JsonDocument.Parse(message.Response.ContentStream); 1608return Response.FromValue(value, message.Response); 1611throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1676switch (message.Response.Status) 1681using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1683return Response.FromValue(value, message.Response); 1686throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1720switch (message.Response.Status) 1725using var document = JsonDocument.Parse(message.Response.ContentStream); 1727return Response.FromValue(value, message.Response); 1730throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1783switch (message.Response.Status) 1788using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1790return Response.FromValue(value, message.Response); 1793throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1832switch (message.Response.Status) 1837using var document = JsonDocument.Parse(message.Response.ContentStream); 1839return Response.FromValue(value, message.Response); 1842throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1885switch (message.Response.Status) 1890using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1892return Response.FromValue(value, message.Response); 1895throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1924switch (message.Response.Status) 1929using var document = JsonDocument.Parse(message.Response.ContentStream); 1931return Response.FromValue(value, message.Response); 1934throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1982switch (message.Response.Status) 1987using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1989return Response.FromValue(value, message.Response); 1992throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2026switch (message.Response.Status) 2031using var document = JsonDocument.Parse(message.Response.ContentStream); 2033return Response.FromValue(value, message.Response); 2036throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2094switch (message.Response.Status) 2099using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2101return Response.FromValue(value, message.Response); 2104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2148switch (message.Response.Status) 2153using var document = JsonDocument.Parse(message.Response.ContentStream); 2155return Response.FromValue(value, message.Response); 2158throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2206switch (message.Response.Status) 2211using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2213return Response.FromValue(value, message.Response); 2216throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2250switch (message.Response.Status) 2255using var document = JsonDocument.Parse(message.Response.ContentStream); 2257return Response.FromValue(value, message.Response); 2260throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2313switch (message.Response.Status) 2318using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 2320return Response.FromValue(value, message.Response); 2323throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2362switch (message.Response.Status) 2367using var document = JsonDocument.Parse(message.Response.ContentStream); 2369return Response.FromValue(value, message.Response); 2372throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LongTermRetentionManagedInstanceBackupsRestOperations.cs (128)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113return Response.FromValue((ManagedInstanceLongTermRetentionBackupData)null, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162return Response.FromValue((ManagedInstanceLongTermRetentionBackupData)null, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 224switch (message.Response.Status) 228return message.Response; 230throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 271return message.Response; 273throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 387using var document = JsonDocument.Parse(message.Response.ContentStream); 389return Response.FromValue(value, message.Response); 392throw ClientDiagnostics.CreateRequestFailedException(message.Response); 450switch (message.Response.Status) 455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 457return Response.FromValue(value, message.Response); 460throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 489switch (message.Response.Status) 494using var document = JsonDocument.Parse(message.Response.ContentStream); 496return Response.FromValue(value, message.Response); 499throw ClientDiagnostics.CreateRequestFailedException(message.Response); 550switch (message.Response.Status) 555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 557return Response.FromValue(value, message.Response); 560throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 584switch (message.Response.Status) 589using var document = JsonDocument.Parse(message.Response.ContentStream); 591return Response.FromValue(value, message.Response); 594throw ClientDiagnostics.CreateRequestFailedException(message.Response); 662switch (message.Response.Status) 667using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 669return Response.FromValue(value, message.Response); 672return Response.FromValue((ManagedInstanceLongTermRetentionBackupData)null, message.Response); 674throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 716switch (message.Response.Status) 721using var document = JsonDocument.Parse(message.Response.ContentStream); 723return Response.FromValue(value, message.Response); 726return Response.FromValue((ManagedInstanceLongTermRetentionBackupData)null, message.Response); 728throw ClientDiagnostics.CreateRequestFailedException(message.Response); 795switch (message.Response.Status) 799return message.Response; 801throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 843switch (message.Response.Status) 847return message.Response; 849throw ClientDiagnostics.CreateRequestFailedException(message.Response); 921switch (message.Response.Status) 926using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 928return Response.FromValue(value, message.Response); 931throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 970switch (message.Response.Status) 975using var document = JsonDocument.Parse(message.Response.ContentStream); 977return Response.FromValue(value, message.Response); 980throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1045switch (message.Response.Status) 1050using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1052return Response.FromValue(value, message.Response); 1055throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1089switch (message.Response.Status) 1094using var document = JsonDocument.Parse(message.Response.ContentStream); 1096return Response.FromValue(value, message.Response); 1099throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1157switch (message.Response.Status) 1162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1164return Response.FromValue(value, message.Response); 1167throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1196switch (message.Response.Status) 1201using var document = JsonDocument.Parse(message.Response.ContentStream); 1203return Response.FromValue(value, message.Response); 1206throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1259switch (message.Response.Status) 1264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1266return Response.FromValue(value, message.Response); 1269throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1308switch (message.Response.Status) 1313using var document = JsonDocument.Parse(message.Response.ContentStream); 1315return Response.FromValue(value, message.Response); 1318throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1366switch (message.Response.Status) 1371using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1373return Response.FromValue(value, message.Response); 1376throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1410switch (message.Response.Status) 1415using var document = JsonDocument.Parse(message.Response.ContentStream); 1417return Response.FromValue(value, message.Response); 1420throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1463switch (message.Response.Status) 1468using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1470return Response.FromValue(value, message.Response); 1473throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1502switch (message.Response.Status) 1507using var document = JsonDocument.Parse(message.Response.ContentStream); 1509return Response.FromValue(value, message.Response); 1512throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1570switch (message.Response.Status) 1575using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1577return Response.FromValue(value, message.Response); 1580throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1624switch (message.Response.Status) 1629using var document = JsonDocument.Parse(message.Response.ContentStream); 1631return Response.FromValue(value, message.Response); 1634throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1687switch (message.Response.Status) 1692using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1694return Response.FromValue(value, message.Response); 1697throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1736switch (message.Response.Status) 1741using var document = JsonDocument.Parse(message.Response.ContentStream); 1743return Response.FromValue(value, message.Response); 1746throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1794switch (message.Response.Status) 1799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1801return Response.FromValue(value, message.Response); 1804throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1838switch (message.Response.Status) 1843using var document = JsonDocument.Parse(message.Response.ContentStream); 1845return Response.FromValue(value, message.Response); 1848throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LongTermRetentionPoliciesRestOperations.cs (32)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((LongTermRetentionPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((LongTermRetentionPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 226return message.Response; 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 270return message.Response; 272throw ClientDiagnostics.CreateRequestFailedException(message.Response); 327switch (message.Response.Status) 332using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 334return Response.FromValue(value, message.Response); 337throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 369switch (message.Response.Status) 374using var document = JsonDocument.Parse(message.Response.ContentStream); 376return Response.FromValue(value, message.Response); 379throw ClientDiagnostics.CreateRequestFailedException(message.Response); 430switch (message.Response.Status) 435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 437return Response.FromValue(value, message.Response); 440throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 482using var document = JsonDocument.Parse(message.Response.ContentStream); 484return Response.FromValue(value, message.Response); 487throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MaintenanceWindowOptionsRestOperations.cs (10)
102switch (message.Response.Status) 107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 109return Response.FromValue(value, message.Response); 112return Response.FromValue((MaintenanceWindowOptionsData)null, message.Response); 114throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161return Response.FromValue((MaintenanceWindowOptionsData)null, message.Response); 163throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MaintenanceWindowsRestOperations.cs (16)
102switch (message.Response.Status) 107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 109return Response.FromValue(value, message.Response); 112return Response.FromValue((MaintenanceWindowsData)null, message.Response); 114throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 151switch (message.Response.Status) 156using var document = JsonDocument.Parse(message.Response.ContentStream); 158return Response.FromValue(value, message.Response); 161return Response.FromValue((MaintenanceWindowsData)null, message.Response); 163throw ClientDiagnostics.CreateRequestFailedException(message.Response); 232switch (message.Response.Status) 235return message.Response; 237throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 279switch (message.Response.Status) 282return message.Response; 284throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedBackupShortTermRetentionPoliciesRestOperations.cs (38)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((ManagedBackupShortTermRetentionPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((ManagedBackupShortTermRetentionPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 226return message.Response; 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 270return message.Response; 272throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 342return message.Response; 344throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 386return message.Response; 388throw ClientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 485switch (message.Response.Status) 490using var document = JsonDocument.Parse(message.Response.ContentStream); 492return Response.FromValue(value, message.Response); 495throw ClientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 593switch (message.Response.Status) 598using var document = JsonDocument.Parse(message.Response.ContentStream); 600return Response.FromValue(value, message.Response); 603throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseColumnsRestOperations.cs (42)
135switch (message.Response.Status) 140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 142return Response.FromValue(value, message.Response); 145throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 182switch (message.Response.Status) 187using var document = JsonDocument.Parse(message.Response.ContentStream); 189return Response.FromValue(value, message.Response); 192throw ClientDiagnostics.CreateRequestFailedException(message.Response); 266switch (message.Response.Status) 271using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 273return Response.FromValue(value, message.Response); 276throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 319switch (message.Response.Status) 324using var document = JsonDocument.Parse(message.Response.ContentStream); 326return Response.FromValue(value, message.Response); 329throw ClientDiagnostics.CreateRequestFailedException(message.Response); 404switch (message.Response.Status) 409using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 411return Response.FromValue(value, message.Response); 414return Response.FromValue((DatabaseColumnData)null, message.Response); 416throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 463switch (message.Response.Status) 468using var document = JsonDocument.Parse(message.Response.ContentStream); 470return Response.FromValue(value, message.Response); 473return Response.FromValue((DatabaseColumnData)null, message.Response); 475throw ClientDiagnostics.CreateRequestFailedException(message.Response); 531switch (message.Response.Status) 536using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 538return Response.FromValue(value, message.Response); 541throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 583switch (message.Response.Status) 588using var document = JsonDocument.Parse(message.Response.ContentStream); 590return Response.FromValue(value, message.Response); 593throw ClientDiagnostics.CreateRequestFailedException(message.Response); 655switch (message.Response.Status) 660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 662return Response.FromValue(value, message.Response); 665throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 713switch (message.Response.Status) 718using var document = JsonDocument.Parse(message.Response.ContentStream); 720return Response.FromValue(value, message.Response); 723throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseQueriesRestOperations.cs (24)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 155using var document = JsonDocument.Parse(message.Response.ContentStream); 157return Response.FromValue(value, message.Response); 160throw ClientDiagnostics.CreateRequestFailedException(message.Response); 237switch (message.Response.Status) 242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 244return Response.FromValue(value, message.Response); 247throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287switch (message.Response.Status) 292using var document = JsonDocument.Parse(message.Response.ContentStream); 294return Response.FromValue(value, message.Response); 297throw ClientDiagnostics.CreateRequestFailedException(message.Response); 356switch (message.Response.Status) 361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 363return Response.FromValue(value, message.Response); 366throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 411switch (message.Response.Status) 416using var document = JsonDocument.Parse(message.Response.ContentStream); 418return Response.FromValue(value, message.Response); 421throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseRestoreDetailsRestOperations.cs (10)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((ManagedDatabaseRestoreDetailsResultData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((ManagedDatabaseRestoreDetailsResultData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseSchemasRestOperations.cs (26)
102switch (message.Response.Status) 107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 109return Response.FromValue(value, message.Response); 112throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw ClientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226return Response.FromValue((DatabaseSchemaData)null, message.Response); 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 265switch (message.Response.Status) 270using var document = JsonDocument.Parse(message.Response.ContentStream); 272return Response.FromValue(value, message.Response); 275return Response.FromValue((DatabaseSchemaData)null, message.Response); 277throw ClientDiagnostics.CreateRequestFailedException(message.Response); 329switch (message.Response.Status) 334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 336return Response.FromValue(value, message.Response); 339throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 377switch (message.Response.Status) 382using var document = JsonDocument.Parse(message.Response.ContentStream); 384return Response.FromValue(value, message.Response); 387throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseSecurityAlertPoliciesRestOperations.cs (34)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((ManagedDatabaseSecurityAlertPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((ManagedDatabaseSecurityAlertPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 337switch (message.Response.Status) 342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 344return Response.FromValue(value, message.Response); 347throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 379switch (message.Response.Status) 384using var document = JsonDocument.Parse(message.Response.ContentStream); 386return Response.FromValue(value, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 447return Response.FromValue(value, message.Response); 450throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 487switch (message.Response.Status) 492using var document = JsonDocument.Parse(message.Response.ContentStream); 494return Response.FromValue(value, message.Response); 497throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseSecurityEventsRestOperations.cs (16)
117switch (message.Response.Status) 122using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 124return Response.FromValue(value, message.Response); 127throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 163switch (message.Response.Status) 168using var document = JsonDocument.Parse(message.Response.ContentStream); 170return Response.FromValue(value, message.Response); 173throw ClientDiagnostics.CreateRequestFailedException(message.Response); 228switch (message.Response.Status) 233using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 235return Response.FromValue(value, message.Response); 238throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 279switch (message.Response.Status) 284using var document = JsonDocument.Parse(message.Response.ContentStream); 286return Response.FromValue(value, message.Response); 289throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseSensitivityLabelsRestOperations.cs (80)
120switch (message.Response.Status) 125using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 127return Response.FromValue(value, message.Response); 130return Response.FromValue((SensitivityLabelData)null, message.Response); 132throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 180switch (message.Response.Status) 185using var document = JsonDocument.Parse(message.Response.ContentStream); 187return Response.FromValue(value, message.Response); 190return Response.FromValue((SensitivityLabelData)null, message.Response); 192throw ClientDiagnostics.CreateRequestFailedException(message.Response); 278switch (message.Response.Status) 284using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 286return Response.FromValue(value, message.Response); 289throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 341switch (message.Response.Status) 347using var document = JsonDocument.Parse(message.Response.ContentStream); 349return Response.FromValue(value, message.Response); 352throw ClientDiagnostics.CreateRequestFailedException(message.Response); 428switch (message.Response.Status) 431return message.Response; 433throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 480switch (message.Response.Status) 483return message.Response; 485throw ClientDiagnostics.CreateRequestFailedException(message.Response); 562switch (message.Response.Status) 565return message.Response; 567throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 614switch (message.Response.Status) 617return message.Response; 619throw ClientDiagnostics.CreateRequestFailedException(message.Response); 696switch (message.Response.Status) 699return message.Response; 701throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 748switch (message.Response.Status) 751return message.Response; 753throw ClientDiagnostics.CreateRequestFailedException(message.Response); 823switch (message.Response.Status) 828using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 830return Response.FromValue(value, message.Response); 833throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 868switch (message.Response.Status) 873using var document = JsonDocument.Parse(message.Response.ContentStream); 875return Response.FromValue(value, message.Response); 878throw ClientDiagnostics.CreateRequestFailedException(message.Response); 941switch (message.Response.Status) 944return message.Response; 946throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 983switch (message.Response.Status) 986return message.Response; 988throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1058switch (message.Response.Status) 1063using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1065return Response.FromValue(value, message.Response); 1068throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1103switch (message.Response.Status) 1108using var document = JsonDocument.Parse(message.Response.ContentStream); 1110return Response.FromValue(value, message.Response); 1113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1176switch (message.Response.Status) 1179return message.Response; 1181throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1218switch (message.Response.Status) 1221return message.Response; 1223throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1277switch (message.Response.Status) 1282using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1284return Response.FromValue(value, message.Response); 1287throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1327switch (message.Response.Status) 1332using var document = JsonDocument.Parse(message.Response.ContentStream); 1334return Response.FromValue(value, message.Response); 1337throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1391switch (message.Response.Status) 1396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1398return Response.FromValue(value, message.Response); 1401throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1441switch (message.Response.Status) 1446using var document = JsonDocument.Parse(message.Response.ContentStream); 1448return Response.FromValue(value, message.Response); 1451throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabasesRestOperations.cs (66)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((ManagedDatabaseData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((ManagedDatabaseData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 315return message.Response; 317throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 354switch (message.Response.Status) 359return message.Response; 361throw ClientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 419return message.Response; 421throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 458return message.Response; 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 523switch (message.Response.Status) 527return message.Response; 529throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 570return message.Response; 572throw ClientDiagnostics.CreateRequestFailedException(message.Response); 635switch (message.Response.Status) 639return message.Response; 641throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 678switch (message.Response.Status) 682return message.Response; 684throw ClientDiagnostics.CreateRequestFailedException(message.Response); 732switch (message.Response.Status) 737using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 739return Response.FromValue(value, message.Response); 742throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 769switch (message.Response.Status) 774using var document = JsonDocument.Parse(message.Response.ContentStream); 776return Response.FromValue(value, message.Response); 779throw ClientDiagnostics.CreateRequestFailedException(message.Response); 825switch (message.Response.Status) 830using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 832return Response.FromValue(value, message.Response); 835throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 867switch (message.Response.Status) 872using var document = JsonDocument.Parse(message.Response.ContentStream); 874return Response.FromValue(value, message.Response); 877throw ClientDiagnostics.CreateRequestFailedException(message.Response); 923switch (message.Response.Status) 928using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 930return Response.FromValue(value, message.Response); 933throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 965switch (message.Response.Status) 970using var document = JsonDocument.Parse(message.Response.ContentStream); 972return Response.FromValue(value, message.Response); 975throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseTablesRestOperations.cs (26)
109switch (message.Response.Status) 114using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 116return Response.FromValue(value, message.Response); 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 157switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw ClientDiagnostics.CreateRequestFailedException(message.Response); 235switch (message.Response.Status) 240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((DatabaseTableData)null, message.Response); 247throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 289switch (message.Response.Status) 294using var document = JsonDocument.Parse(message.Response.ContentStream); 296return Response.FromValue(value, message.Response); 299return Response.FromValue((DatabaseTableData)null, message.Response); 301throw ClientDiagnostics.CreateRequestFailedException(message.Response); 358switch (message.Response.Status) 363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 365return Response.FromValue(value, message.Response); 368throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 411switch (message.Response.Status) 416using var document = JsonDocument.Parse(message.Response.ContentStream); 418return Response.FromValue(value, message.Response); 421throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseTransparentDataEncryptionRestOperations.cs (34)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((ManagedTransparentDataEncryptionData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((ManagedTransparentDataEncryptionData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 337switch (message.Response.Status) 342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 344return Response.FromValue(value, message.Response); 347throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 379switch (message.Response.Status) 384using var document = JsonDocument.Parse(message.Response.ContentStream); 386return Response.FromValue(value, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 440switch (message.Response.Status) 445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 447return Response.FromValue(value, message.Response); 450throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 487switch (message.Response.Status) 492using var document = JsonDocument.Parse(message.Response.ContentStream); 494return Response.FromValue(value, message.Response); 497throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations.cs (24)
109switch (message.Response.Status) 114using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 116return Response.FromValue(value, message.Response); 119return Response.FromValue((DatabaseVulnerabilityAssessmentRuleBaselineData)null, message.Response); 121throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 160switch (message.Response.Status) 165using var document = JsonDocument.Parse(message.Response.ContentStream); 167return Response.FromValue(value, message.Response); 170return Response.FromValue((DatabaseVulnerabilityAssessmentRuleBaselineData)null, message.Response); 172throw ClientDiagnostics.CreateRequestFailedException(message.Response); 248switch (message.Response.Status) 253using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 255return Response.FromValue(value, message.Response); 258throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 302switch (message.Response.Status) 307using var document = JsonDocument.Parse(message.Response.ContentStream); 309return Response.FromValue(value, message.Response); 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 378switch (message.Response.Status) 381return message.Response; 383throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 422switch (message.Response.Status) 425return message.Response; 427throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseVulnerabilityAssessmentScansRestOperations.cs (40)
106switch (message.Response.Status) 110return message.Response; 112throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 150switch (message.Response.Status) 154return message.Response; 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 221switch (message.Response.Status) 227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 229return Response.FromValue(value, message.Response); 232throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 270switch (message.Response.Status) 276using var document = JsonDocument.Parse(message.Response.ContentStream); 278return Response.FromValue(value, message.Response); 281throw ClientDiagnostics.CreateRequestFailedException(message.Response); 339switch (message.Response.Status) 344using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 346return Response.FromValue(value, message.Response); 349throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 387using var document = JsonDocument.Parse(message.Response.ContentStream); 389return Response.FromValue(value, message.Response); 392throw ClientDiagnostics.CreateRequestFailedException(message.Response); 456switch (message.Response.Status) 461using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 463return Response.FromValue(value, message.Response); 466return Response.FromValue((VulnerabilityAssessmentScanRecordData)null, message.Response); 468throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 506switch (message.Response.Status) 511using var document = JsonDocument.Parse(message.Response.ContentStream); 513return Response.FromValue(value, message.Response); 516return Response.FromValue((VulnerabilityAssessmentScanRecordData)null, message.Response); 518throw ClientDiagnostics.CreateRequestFailedException(message.Response); 570switch (message.Response.Status) 575using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 577return Response.FromValue(value, message.Response); 580throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 618switch (message.Response.Status) 623using var document = JsonDocument.Parse(message.Response.ContentStream); 625return Response.FromValue(value, message.Response); 628throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedDatabaseVulnerabilityAssessmentsRestOperations.cs (40)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((DatabaseVulnerabilityAssessmentData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((DatabaseVulnerabilityAssessmentData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 271switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 341return message.Response; 343throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376switch (message.Response.Status) 379return message.Response; 381throw ClientDiagnostics.CreateRequestFailedException(message.Response); 436switch (message.Response.Status) 441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 443return Response.FromValue(value, message.Response); 446throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 478switch (message.Response.Status) 483using var document = JsonDocument.Parse(message.Response.ContentStream); 485return Response.FromValue(value, message.Response); 488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 539switch (message.Response.Status) 544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 546return Response.FromValue(value, message.Response); 549throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 586switch (message.Response.Status) 591using var document = JsonDocument.Parse(message.Response.ContentStream); 593return Response.FromValue(value, message.Response); 596throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceAdministratorsRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((ManagedInstanceAdministratorData)null, message.Response); 199throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 227switch (message.Response.Status) 232using var document = JsonDocument.Parse(message.Response.ContentStream); 234return Response.FromValue(value, message.Response); 237return Response.FromValue((ManagedInstanceAdministratorData)null, message.Response); 239throw ClientDiagnostics.CreateRequestFailedException(message.Response); 298switch (message.Response.Status) 303return message.Response; 305throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 338switch (message.Response.Status) 343return message.Response; 345throw ClientDiagnostics.CreateRequestFailedException(message.Response); 394switch (message.Response.Status) 398return message.Response; 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 428switch (message.Response.Status) 432return message.Response; 434throw ClientDiagnostics.CreateRequestFailedException(message.Response); 480switch (message.Response.Status) 485using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 487return Response.FromValue(value, message.Response); 490throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 522switch (message.Response.Status) 527using var document = JsonDocument.Parse(message.Response.ContentStream); 529return Response.FromValue(value, message.Response); 532throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceAzureADOnlyAuthenticationsRestOperations.cs (38)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ManagedInstanceAzureADOnlyAuthenticationData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ManagedInstanceAzureADOnlyAuthenticationData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208return message.Response; 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 243switch (message.Response.Status) 248return message.Response; 250throw ClientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 304return message.Response; 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 339return message.Response; 341throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 482switch (message.Response.Status) 487using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 489return Response.FromValue(value, message.Response); 492throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 524switch (message.Response.Status) 529using var document = JsonDocument.Parse(message.Response.ContentStream); 531return Response.FromValue(value, message.Response); 534throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceEncryptionProtectorsRestOperations.cs (38)
92switch (message.Response.Status) 96return message.Response; 98throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 126switch (message.Response.Status) 130return message.Response; 132throw ClientDiagnostics.CreateRequestFailedException(message.Response); 180switch (message.Response.Status) 185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 187return Response.FromValue(value, message.Response); 190throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 217switch (message.Response.Status) 222using var document = JsonDocument.Parse(message.Response.ContentStream); 224return Response.FromValue(value, message.Response); 227throw ClientDiagnostics.CreateRequestFailedException(message.Response); 277switch (message.Response.Status) 282using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 284return Response.FromValue(value, message.Response); 287return Response.FromValue((ManagedInstanceEncryptionProtectorData)null, message.Response); 289throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 317switch (message.Response.Status) 322using var document = JsonDocument.Parse(message.Response.ContentStream); 324return Response.FromValue(value, message.Response); 327return Response.FromValue((ManagedInstanceEncryptionProtectorData)null, message.Response); 329throw ClientDiagnostics.CreateRequestFailedException(message.Response); 388switch (message.Response.Status) 392return message.Response; 394throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 427switch (message.Response.Status) 431return message.Response; 433throw ClientDiagnostics.CreateRequestFailedException(message.Response); 479switch (message.Response.Status) 484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 486return Response.FromValue(value, message.Response); 489throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 521switch (message.Response.Status) 526using var document = JsonDocument.Parse(message.Response.ContentStream); 528return Response.FromValue(value, message.Response); 531throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceKeysRestOperations.cs (38)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw ClientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207return Response.FromValue((ManagedInstanceKeyData)null, message.Response); 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 241switch (message.Response.Status) 246using var document = JsonDocument.Parse(message.Response.ContentStream); 248return Response.FromValue(value, message.Response); 251return Response.FromValue((ManagedInstanceKeyData)null, message.Response); 253throw ClientDiagnostics.CreateRequestFailedException(message.Response); 316switch (message.Response.Status) 321return message.Response; 323throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 360switch (message.Response.Status) 365return message.Response; 367throw ClientDiagnostics.CreateRequestFailedException(message.Response); 420switch (message.Response.Status) 425return message.Response; 427throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 464return message.Response; 466throw ClientDiagnostics.CreateRequestFailedException(message.Response); 513switch (message.Response.Status) 518using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 520return Response.FromValue(value, message.Response); 523throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 556switch (message.Response.Status) 561using var document = JsonDocument.Parse(message.Response.ContentStream); 563return Response.FromValue(value, message.Response); 566throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceLongTermRetentionPoliciesRestOperations.cs (32)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((ManagedInstanceLongTermRetentionPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((ManagedInstanceLongTermRetentionPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 226return message.Response; 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 270return message.Response; 272throw ClientDiagnostics.CreateRequestFailedException(message.Response); 327switch (message.Response.Status) 332using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 334return Response.FromValue(value, message.Response); 337throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 369switch (message.Response.Status) 374using var document = JsonDocument.Parse(message.Response.ContentStream); 376return Response.FromValue(value, message.Response); 379throw ClientDiagnostics.CreateRequestFailedException(message.Response); 430switch (message.Response.Status) 435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 437return Response.FromValue(value, message.Response); 440throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477switch (message.Response.Status) 482using var document = JsonDocument.Parse(message.Response.ContentStream); 484return Response.FromValue(value, message.Response); 487throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstancePrivateEndpointConnectionsRestOperations.cs (38)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((ManagedInstancePrivateEndpointConnectionData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((ManagedInstancePrivateEndpointConnectionData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 219return message.Response; 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 317switch (message.Response.Status) 322return message.Response; 324throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 361return message.Response; 363throw ClientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 418return Response.FromValue(value, message.Response); 421throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 453using var document = JsonDocument.Parse(message.Response.ContentStream); 455return Response.FromValue(value, message.Response); 458throw ClientDiagnostics.CreateRequestFailedException(message.Response); 504switch (message.Response.Status) 509using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 511return Response.FromValue(value, message.Response); 514throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 546switch (message.Response.Status) 551using var document = JsonDocument.Parse(message.Response.ContentStream); 553return Response.FromValue(value, message.Response); 556throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstancePrivateLinkResourcesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((ManagedInstancePrivateLinkData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((ManagedInstancePrivateLinkData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceRestOperations.cs (32)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 187switch (message.Response.Status) 192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 194return Response.FromValue(value, message.Response); 197return Response.FromValue((ManagedInstanceOperationData)null, message.Response); 199throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 227switch (message.Response.Status) 232using var document = JsonDocument.Parse(message.Response.ContentStream); 234return Response.FromValue(value, message.Response); 237return Response.FromValue((ManagedInstanceOperationData)null, message.Response); 239throw ClientDiagnostics.CreateRequestFailedException(message.Response); 289switch (message.Response.Status) 292return message.Response; 294throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 322switch (message.Response.Status) 325return message.Response; 327throw ClientDiagnostics.CreateRequestFailedException(message.Response); 373switch (message.Response.Status) 378using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 380return Response.FromValue(value, message.Response); 383throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 415switch (message.Response.Status) 420using var document = JsonDocument.Parse(message.Response.ContentStream); 422return Response.FromValue(value, message.Response); 425throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstancesRestOperations.cs (98)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw ClientDiagnostics.CreateRequestFailedException(message.Response); 182switch (message.Response.Status) 187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 189return Response.FromValue(value, message.Response); 192throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 210switch (message.Response.Status) 215using var document = JsonDocument.Parse(message.Response.ContentStream); 217return Response.FromValue(value, message.Response); 220throw ClientDiagnostics.CreateRequestFailedException(message.Response); 266switch (message.Response.Status) 271using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 273return Response.FromValue(value, message.Response); 276throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 299switch (message.Response.Status) 304using var document = JsonDocument.Parse(message.Response.ContentStream); 306return Response.FromValue(value, message.Response); 309throw ClientDiagnostics.CreateRequestFailedException(message.Response); 361switch (message.Response.Status) 366using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 368return Response.FromValue(value, message.Response); 371return Response.FromValue((ManagedInstanceData)null, message.Response); 373throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 401switch (message.Response.Status) 406using var document = JsonDocument.Parse(message.Response.ContentStream); 408return Response.FromValue(value, message.Response); 411return Response.FromValue((ManagedInstanceData)null, message.Response); 413throw ClientDiagnostics.CreateRequestFailedException(message.Response); 469switch (message.Response.Status) 474return message.Response; 476throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 508switch (message.Response.Status) 513return message.Response; 515throw ClientDiagnostics.CreateRequestFailedException(message.Response); 561switch (message.Response.Status) 566return message.Response; 568throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 595switch (message.Response.Status) 600return message.Response; 602throw ClientDiagnostics.CreateRequestFailedException(message.Response); 658switch (message.Response.Status) 662return message.Response; 664throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 696switch (message.Response.Status) 700return message.Response; 702throw ClientDiagnostics.CreateRequestFailedException(message.Response); 785switch (message.Response.Status) 790using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 792return Response.FromValue(value, message.Response); 795throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 829switch (message.Response.Status) 834using var document = JsonDocument.Parse(message.Response.ContentStream); 836return Response.FromValue(value, message.Response); 839throw ClientDiagnostics.CreateRequestFailedException(message.Response); 891switch (message.Response.Status) 895return message.Response; 897throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 925switch (message.Response.Status) 929return message.Response; 931throw ClientDiagnostics.CreateRequestFailedException(message.Response); 978switch (message.Response.Status) 983using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 985return Response.FromValue(value, message.Response); 988throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1021switch (message.Response.Status) 1026using var document = JsonDocument.Parse(message.Response.ContentStream); 1028return Response.FromValue(value, message.Response); 1031throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1068switch (message.Response.Status) 1073using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1075return Response.FromValue(value, message.Response); 1078throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1101switch (message.Response.Status) 1106using var document = JsonDocument.Parse(message.Response.ContentStream); 1108return Response.FromValue(value, message.Response); 1111throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1153switch (message.Response.Status) 1158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1160return Response.FromValue(value, message.Response); 1163throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1191switch (message.Response.Status) 1196using var document = JsonDocument.Parse(message.Response.ContentStream); 1198return Response.FromValue(value, message.Response); 1201throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1254switch (message.Response.Status) 1259using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1261return Response.FromValue(value, message.Response); 1264throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1303switch (message.Response.Status) 1308using var document = JsonDocument.Parse(message.Response.ContentStream); 1310return Response.FromValue(value, message.Response); 1313throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceTdeCertificatesRestOperations.cs (6)
97switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 139return message.Response; 141throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedInstanceVulnerabilityAssessmentsRestOperations.cs (40)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ManagedInstanceVulnerabilityAssessmentData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ManagedInstanceVulnerabilityAssessmentData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 209using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 211return Response.FromValue(value, message.Response); 214throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 253using var document = JsonDocument.Parse(message.Response.ContentStream); 255return Response.FromValue(value, message.Response); 258throw ClientDiagnostics.CreateRequestFailedException(message.Response); 307switch (message.Response.Status) 310return message.Response; 312throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 340switch (message.Response.Status) 343return message.Response; 345throw ClientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 400return Response.FromValue(value, message.Response); 403throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw ClientDiagnostics.CreateRequestFailedException(message.Response); 486switch (message.Response.Status) 491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 493return Response.FromValue(value, message.Response); 496throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 528switch (message.Response.Status) 533using var document = JsonDocument.Parse(message.Response.ContentStream); 535return Response.FromValue(value, message.Response); 538throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations.cs (38)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((ManagedBackupShortTermRetentionPolicyData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((ManagedBackupShortTermRetentionPolicyData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 226return message.Response; 228throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 270return message.Response; 272throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 342return message.Response; 344throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 386return message.Response; 388throw ClientDiagnostics.CreateRequestFailedException(message.Response); 443switch (message.Response.Status) 448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 450return Response.FromValue(value, message.Response); 453throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 485switch (message.Response.Status) 490using var document = JsonDocument.Parse(message.Response.ContentStream); 492return Response.FromValue(value, message.Response); 495throw ClientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 593switch (message.Response.Status) 598using var document = JsonDocument.Parse(message.Response.ContentStream); 600return Response.FromValue(value, message.Response); 603throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedServerSecurityAlertPoliciesRestOperations.cs (32)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ManagedServerSecurityAlertPolicyData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ManagedServerSecurityAlertPolicyData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 207return message.Response; 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242switch (message.Response.Status) 246return message.Response; 248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 436using var document = JsonDocument.Parse(message.Response.ContentStream); 438return Response.FromValue(value, message.Response); 441throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\OperationsHealthRestOperations.cs (16)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 166switch (message.Response.Status) 171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 173return Response.FromValue(value, message.Response); 176throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 203switch (message.Response.Status) 208using var document = JsonDocument.Parse(message.Response.ContentStream); 210return Response.FromValue(value, message.Response); 213throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\OutboundFirewallRulesRestOperations.cs (38)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((OutboundFirewallRuleData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((OutboundFirewallRuleData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220return message.Response; 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363return message.Response; 365throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455using var document = JsonDocument.Parse(message.Response.ContentStream); 457return Response.FromValue(value, message.Response); 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 506switch (message.Response.Status) 511using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 513return Response.FromValue(value, message.Response); 516throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 548switch (message.Response.Status) 553using var document = JsonDocument.Parse(message.Response.ContentStream); 555return Response.FromValue(value, message.Response); 558throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (38)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 219return message.Response; 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 317switch (message.Response.Status) 322return message.Response; 324throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 356switch (message.Response.Status) 361return message.Response; 363throw ClientDiagnostics.CreateRequestFailedException(message.Response); 411switch (message.Response.Status) 416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 418return Response.FromValue(value, message.Response); 421throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 448switch (message.Response.Status) 453using var document = JsonDocument.Parse(message.Response.ContentStream); 455return Response.FromValue(value, message.Response); 458throw ClientDiagnostics.CreateRequestFailedException(message.Response); 504switch (message.Response.Status) 509using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 511return Response.FromValue(value, message.Response); 514throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 546switch (message.Response.Status) 551using var document = JsonDocument.Parse(message.Response.ContentStream); 553return Response.FromValue(value, message.Response); 556throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((PrivateLinkResourceData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((PrivateLinkResourceData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RecoverableDatabasesRestOperations.cs (18)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((RecoverableDatabaseData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((RecoverableDatabaseData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 207return Response.FromValue(value, message.Response); 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RecoverableManagedDatabasesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((RecoverableManagedDatabaseData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((RecoverableManagedDatabaseData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ReplicationLinksRestOperations.cs (66)
102switch (message.Response.Status) 106return message.Response; 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 149return message.Response; 151throw ClientDiagnostics.CreateRequestFailedException(message.Response); 212switch (message.Response.Status) 216return message.Response; 218throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 255switch (message.Response.Status) 259return message.Response; 261throw ClientDiagnostics.CreateRequestFailedException(message.Response); 322switch (message.Response.Status) 326return message.Response; 328throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 365switch (message.Response.Status) 369return message.Response; 371throw ClientDiagnostics.CreateRequestFailedException(message.Response); 441switch (message.Response.Status) 445return message.Response; 447throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 489switch (message.Response.Status) 493return message.Response; 495throw ClientDiagnostics.CreateRequestFailedException(message.Response); 550switch (message.Response.Status) 555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 557return Response.FromValue(value, message.Response); 560throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 592switch (message.Response.Status) 597using var document = JsonDocument.Parse(message.Response.ContentStream); 599return Response.FromValue(value, message.Response); 602throw ClientDiagnostics.CreateRequestFailedException(message.Response); 663switch (message.Response.Status) 668using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 670return Response.FromValue(value, message.Response); 673return Response.FromValue((ReplicationLinkData)null, message.Response); 675throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 712switch (message.Response.Status) 717using var document = JsonDocument.Parse(message.Response.ContentStream); 719return Response.FromValue(value, message.Response); 722return Response.FromValue((ReplicationLinkData)null, message.Response); 724throw ClientDiagnostics.CreateRequestFailedException(message.Response); 772switch (message.Response.Status) 777using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 779return Response.FromValue(value, message.Response); 782throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 809switch (message.Response.Status) 814using var document = JsonDocument.Parse(message.Response.ContentStream); 816return Response.FromValue(value, message.Response); 819throw ClientDiagnostics.CreateRequestFailedException(message.Response); 870switch (message.Response.Status) 875using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 877return Response.FromValue(value, message.Response); 880throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 917switch (message.Response.Status) 922using var document = JsonDocument.Parse(message.Response.ContentStream); 924return Response.FromValue(value, message.Response); 927throw ClientDiagnostics.CreateRequestFailedException(message.Response); 973switch (message.Response.Status) 978using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 980return Response.FromValue(value, message.Response); 983throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1015switch (message.Response.Status) 1020using var document = JsonDocument.Parse(message.Response.ContentStream); 1022return Response.FromValue(value, message.Response); 1025throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableDroppedDatabasesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((RestorableDroppedDatabaseData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((RestorableDroppedDatabaseData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorableDroppedManagedDatabasesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((RestorableDroppedManagedDatabaseData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((RestorableDroppedManagedDatabaseData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 293switch (message.Response.Status) 298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 300return Response.FromValue(value, message.Response); 303throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorePointsRestOperations.cs (38)
97switch (message.Response.Status) 102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 104return Response.FromValue(value, message.Response); 107throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139switch (message.Response.Status) 144using var document = JsonDocument.Parse(message.Response.ContentStream); 146return Response.FromValue(value, message.Response); 149throw ClientDiagnostics.CreateRequestFailedException(message.Response); 213switch (message.Response.Status) 218return message.Response; 220throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 257switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 325switch (message.Response.Status) 330using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 332return Response.FromValue(value, message.Response); 335return Response.FromValue((RestorePointData)null, message.Response); 337throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 374switch (message.Response.Status) 379using var document = JsonDocument.Parse(message.Response.ContentStream); 381return Response.FromValue(value, message.Response); 384return Response.FromValue((RestorePointData)null, message.Response); 386throw ClientDiagnostics.CreateRequestFailedException(message.Response); 446switch (message.Response.Status) 449return message.Response; 451throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 488switch (message.Response.Status) 491return message.Response; 493throw ClientDiagnostics.CreateRequestFailedException(message.Response); 544switch (message.Response.Status) 549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 551return Response.FromValue(value, message.Response); 554throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 591switch (message.Response.Status) 596using var document = JsonDocument.Parse(message.Response.ContentStream); 598return Response.FromValue(value, message.Response); 601throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SensitivityLabelsRestOperations.cs (80)
112switch (message.Response.Status) 117using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 119return Response.FromValue(value, message.Response); 122throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 157switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw ClientDiagnostics.CreateRequestFailedException(message.Response); 230switch (message.Response.Status) 233return message.Response; 235throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 272switch (message.Response.Status) 275return message.Response; 277throw ClientDiagnostics.CreateRequestFailedException(message.Response); 347switch (message.Response.Status) 352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 354return Response.FromValue(value, message.Response); 357throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 392switch (message.Response.Status) 397using var document = JsonDocument.Parse(message.Response.ContentStream); 399return Response.FromValue(value, message.Response); 402throw ClientDiagnostics.CreateRequestFailedException(message.Response); 465switch (message.Response.Status) 468return message.Response; 470throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507switch (message.Response.Status) 510return message.Response; 512throw ClientDiagnostics.CreateRequestFailedException(message.Response); 589switch (message.Response.Status) 592return message.Response; 594throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 641switch (message.Response.Status) 644return message.Response; 646throw ClientDiagnostics.CreateRequestFailedException(message.Response); 723switch (message.Response.Status) 726return message.Response; 728throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 775switch (message.Response.Status) 778return message.Response; 780throw ClientDiagnostics.CreateRequestFailedException(message.Response); 858switch (message.Response.Status) 863using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 865return Response.FromValue(value, message.Response); 868return Response.FromValue((SensitivityLabelData)null, message.Response); 870throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 918switch (message.Response.Status) 923using var document = JsonDocument.Parse(message.Response.ContentStream); 925return Response.FromValue(value, message.Response); 928return Response.FromValue((SensitivityLabelData)null, message.Response); 930throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1016switch (message.Response.Status) 1022using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1024return Response.FromValue(value, message.Response); 1027throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1079switch (message.Response.Status) 1085using var document = JsonDocument.Parse(message.Response.ContentStream); 1087return Response.FromValue(value, message.Response); 1090throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1166switch (message.Response.Status) 1169return message.Response; 1171throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1218switch (message.Response.Status) 1221return message.Response; 1223throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1277switch (message.Response.Status) 1282using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1284return Response.FromValue(value, message.Response); 1287throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1327switch (message.Response.Status) 1332using var document = JsonDocument.Parse(message.Response.ContentStream); 1334return Response.FromValue(value, message.Response); 1337throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1391switch (message.Response.Status) 1396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1398return Response.FromValue(value, message.Response); 1401throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1441switch (message.Response.Status) 1446using var document = JsonDocument.Parse(message.Response.ContentStream); 1448return Response.FromValue(value, message.Response); 1451throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerAdvisorsRestOperations.cs (26)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 150return Response.FromValue(value, message.Response); 153throw ClientDiagnostics.CreateRequestFailedException(message.Response); 207switch (message.Response.Status) 212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 214return Response.FromValue(value, message.Response); 217return Response.FromValue((AdvisorData)null, message.Response); 219throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 258return Response.FromValue(value, message.Response); 261return Response.FromValue((AdvisorData)null, message.Response); 263throw ClientDiagnostics.CreateRequestFailedException(message.Response); 326switch (message.Response.Status) 331using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 333return Response.FromValue(value, message.Response); 336throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 373switch (message.Response.Status) 378using var document = JsonDocument.Parse(message.Response.ContentStream); 380return Response.FromValue(value, message.Response); 383throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerAutomaticTuningRestOperations.cs (18)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((ServerAutomaticTuningData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((ServerAutomaticTuningData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 244using var document = JsonDocument.Parse(message.Response.ContentStream); 246return Response.FromValue(value, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerAzureADAdministratorsRestOperations.cs (38)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ServerAzureADAdministratorData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ServerAzureADAdministratorData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208return message.Response; 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 243switch (message.Response.Status) 248return message.Response; 250throw ClientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 304return message.Response; 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 339return message.Response; 341throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 482switch (message.Response.Status) 487using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 489return Response.FromValue(value, message.Response); 492throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 524switch (message.Response.Status) 529using var document = JsonDocument.Parse(message.Response.ContentStream); 531return Response.FromValue(value, message.Response); 534throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerAzureADOnlyAuthenticationsRestOperations.cs (38)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ServerAzureADOnlyAuthenticationData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ServerAzureADOnlyAuthenticationData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208return message.Response; 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 243switch (message.Response.Status) 248return message.Response; 250throw ClientDiagnostics.CreateRequestFailedException(message.Response); 299switch (message.Response.Status) 304return message.Response; 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 339return message.Response; 341throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 426switch (message.Response.Status) 431using var document = JsonDocument.Parse(message.Response.ContentStream); 433return Response.FromValue(value, message.Response); 436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 482switch (message.Response.Status) 487using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 489return Response.FromValue(value, message.Response); 492throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 524switch (message.Response.Status) 529using var document = JsonDocument.Parse(message.Response.ContentStream); 531return Response.FromValue(value, message.Response); 534throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerBlobAuditingPoliciesRestOperations.cs (32)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ServerBlobAuditingPolicyData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ServerBlobAuditingPolicyData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 207return message.Response; 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242switch (message.Response.Status) 246return message.Response; 248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 436using var document = JsonDocument.Parse(message.Response.ContentStream); 438return Response.FromValue(value, message.Response); 441throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerCommunicationLinksRestOperations.cs (30)
95switch (message.Response.Status) 98return message.Response; 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 135return message.Response; 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((ServerCommunicationLinkData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((ServerCommunicationLinkData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 314return message.Response; 316throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 353switch (message.Response.Status) 357return message.Response; 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 407switch (message.Response.Status) 412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 414return Response.FromValue(value, message.Response); 417throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 444switch (message.Response.Status) 449using var document = JsonDocument.Parse(message.Response.ContentStream); 451return Response.FromValue(value, message.Response); 454throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerConnectionPoliciesRestOperations.cs (32)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ServerConnectionPolicyData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ServerConnectionPolicyData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 207return message.Response; 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242switch (message.Response.Status) 246return message.Response; 248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 436using var document = JsonDocument.Parse(message.Response.ContentStream); 438return Response.FromValue(value, message.Response); 441throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerDevOpsAuditSettingsRestOperations.cs (32)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((ServerDevOpsAuditingSettingsData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((ServerDevOpsAuditingSettingsData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 219return message.Response; 221throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 258switch (message.Response.Status) 262return message.Response; 264throw ClientDiagnostics.CreateRequestFailedException(message.Response); 312switch (message.Response.Status) 317using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 319return Response.FromValue(value, message.Response); 322throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 349switch (message.Response.Status) 354using var document = JsonDocument.Parse(message.Response.ContentStream); 356return Response.FromValue(value, message.Response); 359throw ClientDiagnostics.CreateRequestFailedException(message.Response); 405switch (message.Response.Status) 410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 412return Response.FromValue(value, message.Response); 415throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 447switch (message.Response.Status) 452using var document = JsonDocument.Parse(message.Response.ContentStream); 454return Response.FromValue(value, message.Response); 457throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerDnsAliasesRestOperations.cs (44)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((ServerDnsAliasData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((ServerDnsAliasData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 206switch (message.Response.Status) 211return message.Response; 213throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 245switch (message.Response.Status) 250return message.Response; 252throw ClientDiagnostics.CreateRequestFailedException(message.Response); 305switch (message.Response.Status) 310return message.Response; 312throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 344switch (message.Response.Status) 349return message.Response; 351throw ClientDiagnostics.CreateRequestFailedException(message.Response); 399switch (message.Response.Status) 404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 406return Response.FromValue(value, message.Response); 409throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 436switch (message.Response.Status) 441using var document = JsonDocument.Parse(message.Response.ContentStream); 443return Response.FromValue(value, message.Response); 446throw ClientDiagnostics.CreateRequestFailedException(message.Response); 510switch (message.Response.Status) 514return message.Response; 516throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 553switch (message.Response.Status) 557return message.Response; 559throw ClientDiagnostics.CreateRequestFailedException(message.Response); 605switch (message.Response.Status) 610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 612return Response.FromValue(value, message.Response); 615throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 647switch (message.Response.Status) 652using var document = JsonDocument.Parse(message.Response.ContentStream); 654return Response.FromValue(value, message.Response); 657throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerKeysRestOperations.cs (38)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((ServerKeyData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((ServerKeyData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 315return message.Response; 317throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 354switch (message.Response.Status) 359return message.Response; 361throw ClientDiagnostics.CreateRequestFailedException(message.Response); 414switch (message.Response.Status) 419return message.Response; 421throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 453switch (message.Response.Status) 458return message.Response; 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 506switch (message.Response.Status) 511using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 513return Response.FromValue(value, message.Response); 516throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 548switch (message.Response.Status) 553using var document = JsonDocument.Parse(message.Response.ContentStream); 555return Response.FromValue(value, message.Response); 558throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerRestOperations.cs (16)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 190return Response.FromValue(value, message.Response); 193throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 225switch (message.Response.Status) 230using var document = JsonDocument.Parse(message.Response.ContentStream); 232return Response.FromValue(value, message.Response); 235throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerSecurityAlertPoliciesRestOperations.cs (32)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ServerSecurityAlertPolicyData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ServerSecurityAlertPolicyData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 207return message.Response; 209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242switch (message.Response.Status) 246return message.Response; 248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 333switch (message.Response.Status) 338using var document = JsonDocument.Parse(message.Response.ContentStream); 340return Response.FromValue(value, message.Response); 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 389switch (message.Response.Status) 394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 396return Response.FromValue(value, message.Response); 399throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 436using var document = JsonDocument.Parse(message.Response.ContentStream); 438return Response.FromValue(value, message.Response); 441throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServersRestOperations.cs (74)
88switch (message.Response.Status) 93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 95return Response.FromValue(value, message.Response); 98throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 121switch (message.Response.Status) 126using var document = JsonDocument.Parse(message.Response.ContentStream); 128return Response.FromValue(value, message.Response); 131throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 190return Response.FromValue(value, message.Response); 193return Response.FromValue((SqlServerData)null, message.Response); 195throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 223switch (message.Response.Status) 228using var document = JsonDocument.Parse(message.Response.ContentStream); 230return Response.FromValue(value, message.Response); 233return Response.FromValue((SqlServerData)null, message.Response); 235throw ClientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296return message.Response; 298throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330switch (message.Response.Status) 335return message.Response; 337throw ClientDiagnostics.CreateRequestFailedException(message.Response); 383switch (message.Response.Status) 388return message.Response; 390throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 417switch (message.Response.Status) 422return message.Response; 424throw ClientDiagnostics.CreateRequestFailedException(message.Response); 480switch (message.Response.Status) 484return message.Response; 486throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 518switch (message.Response.Status) 522return message.Response; 524throw ClientDiagnostics.CreateRequestFailedException(message.Response); 563switch (message.Response.Status) 568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 570return Response.FromValue(value, message.Response); 573throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 591switch (message.Response.Status) 596using var document = JsonDocument.Parse(message.Response.ContentStream); 598return Response.FromValue(value, message.Response); 601throw ClientDiagnostics.CreateRequestFailedException(message.Response); 658switch (message.Response.Status) 662return message.Response; 664throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 696switch (message.Response.Status) 700return message.Response; 702throw ClientDiagnostics.CreateRequestFailedException(message.Response); 745switch (message.Response.Status) 750using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 752return Response.FromValue(value, message.Response); 755throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 777switch (message.Response.Status) 782using var document = JsonDocument.Parse(message.Response.ContentStream); 784return Response.FromValue(value, message.Response); 787throw ClientDiagnostics.CreateRequestFailedException(message.Response); 829switch (message.Response.Status) 834using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 836return Response.FromValue(value, message.Response); 839throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 867switch (message.Response.Status) 872using var document = JsonDocument.Parse(message.Response.ContentStream); 874return Response.FromValue(value, message.Response); 877throw ClientDiagnostics.CreateRequestFailedException(message.Response); 914switch (message.Response.Status) 919using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 921return Response.FromValue(value, message.Response); 924throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 947switch (message.Response.Status) 952using var document = JsonDocument.Parse(message.Response.ContentStream); 954return Response.FromValue(value, message.Response); 957throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerTrustGroupsRestOperations.cs (54)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((ServerTrustGroupData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((ServerTrustGroupData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220return message.Response; 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363return message.Response; 365throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455using var document = JsonDocument.Parse(message.Response.ContentStream); 457return Response.FromValue(value, message.Response); 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 513using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 515return Response.FromValue(value, message.Response); 518throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw ClientDiagnostics.CreateRequestFailedException(message.Response); 601switch (message.Response.Status) 606using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 608return Response.FromValue(value, message.Response); 611throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 643switch (message.Response.Status) 648using var document = JsonDocument.Parse(message.Response.ContentStream); 650return Response.FromValue(value, message.Response); 653throw ClientDiagnostics.CreateRequestFailedException(message.Response); 699switch (message.Response.Status) 704using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 706return Response.FromValue(value, message.Response); 709throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 741switch (message.Response.Status) 746using var document = JsonDocument.Parse(message.Response.ContentStream); 748return Response.FromValue(value, message.Response); 751throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerUsagesRestOperations.cs (8)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServerVulnerabilityAssessmentsRestOperations.cs (40)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ServerVulnerabilityAssessmentData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ServerVulnerabilityAssessmentData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 209using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 211return Response.FromValue(value, message.Response); 214throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247switch (message.Response.Status) 253using var document = JsonDocument.Parse(message.Response.ContentStream); 255return Response.FromValue(value, message.Response); 258throw ClientDiagnostics.CreateRequestFailedException(message.Response); 307switch (message.Response.Status) 310return message.Response; 312throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 340switch (message.Response.Status) 343return message.Response; 345throw ClientDiagnostics.CreateRequestFailedException(message.Response); 393switch (message.Response.Status) 398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 400return Response.FromValue(value, message.Response); 403throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435using var document = JsonDocument.Parse(message.Response.ContentStream); 437return Response.FromValue(value, message.Response); 440throw ClientDiagnostics.CreateRequestFailedException(message.Response); 486switch (message.Response.Status) 491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 493return Response.FromValue(value, message.Response); 496throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 528switch (message.Response.Status) 533using var document = JsonDocument.Parse(message.Response.ContentStream); 535return Response.FromValue(value, message.Response); 538throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceObjectivesRestOperations.cs (18)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((ServiceObjectiveData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((ServiceObjectiveData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 200switch (message.Response.Status) 205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 207return Response.FromValue(value, message.Response); 210throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SqlAgentRestOperations.cs (18)
89switch (message.Response.Status) 94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 96return Response.FromValue(value, message.Response); 99return Response.FromValue((SqlAgentConfigurationData)null, message.Response); 101throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 128switch (message.Response.Status) 133using var document = JsonDocument.Parse(message.Response.ContentStream); 135return Response.FromValue(value, message.Response); 138return Response.FromValue((SqlAgentConfigurationData)null, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 197switch (message.Response.Status) 202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 204return Response.FromValue(value, message.Response); 207throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 239switch (message.Response.Status) 244using var document = JsonDocument.Parse(message.Response.ContentStream); 246return Response.FromValue(value, message.Response); 249throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SubscriptionUsagesRestOperations.cs (26)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 172switch (message.Response.Status) 177using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 179return Response.FromValue(value, message.Response); 182return Response.FromValue((SubscriptionUsageData)null, message.Response); 184throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221return Response.FromValue((SubscriptionUsageData)null, message.Response); 223throw ClientDiagnostics.CreateRequestFailedException(message.Response); 264switch (message.Response.Status) 269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 271return Response.FromValue(value, message.Response); 274throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 301switch (message.Response.Status) 306using var document = JsonDocument.Parse(message.Response.ContentStream); 308return Response.FromValue(value, message.Response); 311throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SyncAgentsRestOperations.cs (62)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((SyncAgentData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((SyncAgentData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220return message.Response; 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363return message.Response; 365throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455using var document = JsonDocument.Parse(message.Response.ContentStream); 457return Response.FromValue(value, message.Response); 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 515switch (message.Response.Status) 520using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 522return Response.FromValue(value, message.Response); 525throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 557switch (message.Response.Status) 562using var document = JsonDocument.Parse(message.Response.ContentStream); 564return Response.FromValue(value, message.Response); 567throw ClientDiagnostics.CreateRequestFailedException(message.Response); 622switch (message.Response.Status) 627using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 629return Response.FromValue(value, message.Response); 632throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response); 720switch (message.Response.Status) 725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 727return Response.FromValue(value, message.Response); 730throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 762switch (message.Response.Status) 767using var document = JsonDocument.Parse(message.Response.ContentStream); 769return Response.FromValue(value, message.Response); 772throw ClientDiagnostics.CreateRequestFailedException(message.Response); 823switch (message.Response.Status) 828using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 830return Response.FromValue(value, message.Response); 833throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 870switch (message.Response.Status) 875using var document = JsonDocument.Parse(message.Response.ContentStream); 877return Response.FromValue(value, message.Response); 880throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SyncGroupsRestOperations.cs (110)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 186switch (message.Response.Status) 190return message.Response; 192throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 229switch (message.Response.Status) 233return message.Response; 235throw ClientDiagnostics.CreateRequestFailedException(message.Response); 297switch (message.Response.Status) 302using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 304return Response.FromValue(value, message.Response); 307throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 344switch (message.Response.Status) 349using var document = JsonDocument.Parse(message.Response.ContentStream); 351return Response.FromValue(value, message.Response); 354throw ClientDiagnostics.CreateRequestFailedException(message.Response); 435switch (message.Response.Status) 440using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 442return Response.FromValue(value, message.Response); 445throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 494switch (message.Response.Status) 499using var document = JsonDocument.Parse(message.Response.ContentStream); 501return Response.FromValue(value, message.Response); 504throw ClientDiagnostics.CreateRequestFailedException(message.Response); 565switch (message.Response.Status) 568return message.Response; 570throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 607switch (message.Response.Status) 610return message.Response; 612throw ClientDiagnostics.CreateRequestFailedException(message.Response); 673switch (message.Response.Status) 676return message.Response; 678throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 715switch (message.Response.Status) 718return message.Response; 720throw ClientDiagnostics.CreateRequestFailedException(message.Response); 781switch (message.Response.Status) 786using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 788return Response.FromValue(value, message.Response); 791return Response.FromValue((SyncGroupData)null, message.Response); 793throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 830switch (message.Response.Status) 835using var document = JsonDocument.Parse(message.Response.ContentStream); 837return Response.FromValue(value, message.Response); 840return Response.FromValue((SyncGroupData)null, message.Response); 842throw ClientDiagnostics.CreateRequestFailedException(message.Response); 912switch (message.Response.Status) 917return message.Response; 919throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 961switch (message.Response.Status) 966return message.Response; 968throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1028switch (message.Response.Status) 1033return message.Response; 1035throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1072switch (message.Response.Status) 1077return message.Response; 1079throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1149switch (message.Response.Status) 1153return message.Response; 1155throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1197switch (message.Response.Status) 1201return message.Response; 1203throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1258switch (message.Response.Status) 1263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1265return Response.FromValue(value, message.Response); 1268throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1300switch (message.Response.Status) 1305using var document = JsonDocument.Parse(message.Response.ContentStream); 1307return Response.FromValue(value, message.Response); 1310throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1351switch (message.Response.Status) 1356using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1358return Response.FromValue(value, message.Response); 1361throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1388switch (message.Response.Status) 1393using var document = JsonDocument.Parse(message.Response.ContentStream); 1395return Response.FromValue(value, message.Response); 1398throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1454switch (message.Response.Status) 1459using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1461return Response.FromValue(value, message.Response); 1464throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1506switch (message.Response.Status) 1511using var document = JsonDocument.Parse(message.Response.ContentStream); 1513return Response.FromValue(value, message.Response); 1516throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1584switch (message.Response.Status) 1589using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1591return Response.FromValue(value, message.Response); 1594throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1648switch (message.Response.Status) 1653using var document = JsonDocument.Parse(message.Response.ContentStream); 1655return Response.FromValue(value, message.Response); 1658throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1709switch (message.Response.Status) 1714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1716return Response.FromValue(value, message.Response); 1719throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1756switch (message.Response.Status) 1761using var document = JsonDocument.Parse(message.Response.ContentStream); 1763return Response.FromValue(value, message.Response); 1766throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SyncMembersRestOperations.cs (66)
110switch (message.Response.Status) 115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 117return Response.FromValue(value, message.Response); 120return Response.FromValue((SyncMemberData)null, message.Response); 122throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 169using var document = JsonDocument.Parse(message.Response.ContentStream); 171return Response.FromValue(value, message.Response); 174return Response.FromValue((SyncMemberData)null, message.Response); 176throw ClientDiagnostics.CreateRequestFailedException(message.Response); 253switch (message.Response.Status) 258return message.Response; 260throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 307switch (message.Response.Status) 312return message.Response; 314throw ClientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386return message.Response; 388throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435return message.Response; 437throw ClientDiagnostics.CreateRequestFailedException(message.Response); 514switch (message.Response.Status) 518return message.Response; 520throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 567switch (message.Response.Status) 571return message.Response; 573throw ClientDiagnostics.CreateRequestFailedException(message.Response); 635switch (message.Response.Status) 640using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 642return Response.FromValue(value, message.Response); 645throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 682switch (message.Response.Status) 687using var document = JsonDocument.Parse(message.Response.ContentStream); 689return Response.FromValue(value, message.Response); 692throw ClientDiagnostics.CreateRequestFailedException(message.Response); 761switch (message.Response.Status) 766using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 768return Response.FromValue(value, message.Response); 771throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 813switch (message.Response.Status) 818using var document = JsonDocument.Parse(message.Response.ContentStream); 820return Response.FromValue(value, message.Response); 823throw ClientDiagnostics.CreateRequestFailedException(message.Response); 891switch (message.Response.Status) 895return message.Response; 897throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 939switch (message.Response.Status) 943return message.Response; 945throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1001switch (message.Response.Status) 1006using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1008return Response.FromValue(value, message.Response); 1011throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1053switch (message.Response.Status) 1058using var document = JsonDocument.Parse(message.Response.ContentStream); 1060return Response.FromValue(value, message.Response); 1063throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1124switch (message.Response.Status) 1129using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1131return Response.FromValue(value, message.Response); 1134throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1181switch (message.Response.Status) 1186using var document = JsonDocument.Parse(message.Response.ContentStream); 1188return Response.FromValue(value, message.Response); 1191throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TdeCertificatesRestOperations.cs (6)
97switch (message.Response.Status) 101return message.Response; 103throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 139return message.Response; 141throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TimeZonesRestOperations.cs (26)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response); 172switch (message.Response.Status) 177using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 179return Response.FromValue(value, message.Response); 182return Response.FromValue((SqlTimeZoneData)null, message.Response); 184throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 211switch (message.Response.Status) 216using var document = JsonDocument.Parse(message.Response.ContentStream); 218return Response.FromValue(value, message.Response); 221return Response.FromValue((SqlTimeZoneData)null, message.Response); 223throw ClientDiagnostics.CreateRequestFailedException(message.Response); 264switch (message.Response.Status) 269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 271return Response.FromValue(value, message.Response); 274throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 301switch (message.Response.Status) 306using var document = JsonDocument.Parse(message.Response.ContentStream); 308return Response.FromValue(value, message.Response); 311throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TransparentDataEncryptionsRestOperations.cs (36)
99switch (message.Response.Status) 104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 106return Response.FromValue(value, message.Response); 109return Response.FromValue((LogicalDatabaseTransparentDataEncryptionData)null, message.Response); 111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 144switch (message.Response.Status) 149using var document = JsonDocument.Parse(message.Response.ContentStream); 151return Response.FromValue(value, message.Response); 154return Response.FromValue((LogicalDatabaseTransparentDataEncryptionData)null, message.Response); 156throw ClientDiagnostics.CreateRequestFailedException(message.Response); 222switch (message.Response.Status) 228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233return Response.FromValue((LogicalDatabaseTransparentDataEncryptionData)null, message.Response); 235throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 273switch (message.Response.Status) 279using var document = JsonDocument.Parse(message.Response.ContentStream); 281return Response.FromValue(value, message.Response); 284return Response.FromValue((LogicalDatabaseTransparentDataEncryptionData)null, message.Response); 286throw ClientDiagnostics.CreateRequestFailedException(message.Response); 341switch (message.Response.Status) 346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 348return Response.FromValue(value, message.Response); 351throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 383switch (message.Response.Status) 388using var document = JsonDocument.Parse(message.Response.ContentStream); 390return Response.FromValue(value, message.Response); 393throw ClientDiagnostics.CreateRequestFailedException(message.Response); 444switch (message.Response.Status) 449using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 451return Response.FromValue(value, message.Response); 454throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 491switch (message.Response.Status) 496using var document = JsonDocument.Parse(message.Response.ContentStream); 498return Response.FromValue(value, message.Response); 501throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\UsagesRestOperations.cs (16)
95switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 133switch (message.Response.Status) 138using var document = JsonDocument.Parse(message.Response.ContentStream); 140return Response.FromValue(value, message.Response); 143throw ClientDiagnostics.CreateRequestFailedException(message.Response); 190switch (message.Response.Status) 195using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 197return Response.FromValue(value, message.Response); 200throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 233switch (message.Response.Status) 238using var document = JsonDocument.Parse(message.Response.ContentStream); 240return Response.FromValue(value, message.Response); 243throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualClustersRestOperations.cs (62)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 171switch (message.Response.Status) 176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 178return Response.FromValue(value, message.Response); 181throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 198switch (message.Response.Status) 203using var document = JsonDocument.Parse(message.Response.ContentStream); 205return Response.FromValue(value, message.Response); 208throw ClientDiagnostics.CreateRequestFailedException(message.Response); 249switch (message.Response.Status) 254using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 256return Response.FromValue(value, message.Response); 259throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 281switch (message.Response.Status) 286using var document = JsonDocument.Parse(message.Response.ContentStream); 288return Response.FromValue(value, message.Response); 291throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348return Response.FromValue((VirtualClusterData)null, message.Response); 350throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 377switch (message.Response.Status) 382using var document = JsonDocument.Parse(message.Response.ContentStream); 384return Response.FromValue(value, message.Response); 387return Response.FromValue((VirtualClusterData)null, message.Response); 389throw ClientDiagnostics.CreateRequestFailedException(message.Response); 435switch (message.Response.Status) 440return message.Response; 442throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 469switch (message.Response.Status) 474return message.Response; 476throw ClientDiagnostics.CreateRequestFailedException(message.Response); 532switch (message.Response.Status) 536return message.Response; 538throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 570switch (message.Response.Status) 574return message.Response; 576throw ClientDiagnostics.CreateRequestFailedException(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return Response.FromValue(value, message.Response); 622throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644switch (message.Response.Status) 649using var document = JsonDocument.Parse(message.Response.ContentStream); 651return Response.FromValue(value, message.Response); 654throw ClientDiagnostics.CreateRequestFailedException(message.Response); 695switch (message.Response.Status) 700using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 702return Response.FromValue(value, message.Response); 705throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 732switch (message.Response.Status) 737using var document = JsonDocument.Parse(message.Response.ContentStream); 739return Response.FromValue(value, message.Response); 742throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkRulesRestOperations.cs (38)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106return Response.FromValue((VirtualNetworkRuleData)null, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 140switch (message.Response.Status) 145using var document = JsonDocument.Parse(message.Response.ContentStream); 147return Response.FromValue(value, message.Response); 150return Response.FromValue((VirtualNetworkRuleData)null, message.Response); 152throw ClientDiagnostics.CreateRequestFailedException(message.Response); 215switch (message.Response.Status) 220return message.Response; 222throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259switch (message.Response.Status) 264return message.Response; 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324return message.Response; 326throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 358switch (message.Response.Status) 363return message.Response; 365throw ClientDiagnostics.CreateRequestFailedException(message.Response); 413switch (message.Response.Status) 418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 420return Response.FromValue(value, message.Response); 423throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 450switch (message.Response.Status) 455using var document = JsonDocument.Parse(message.Response.ContentStream); 457return Response.FromValue(value, message.Response); 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 506switch (message.Response.Status) 511using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 513return Response.FromValue(value, message.Response); 516throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 548switch (message.Response.Status) 553using var document = JsonDocument.Parse(message.Response.ContentStream); 555return Response.FromValue(value, message.Response); 558throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WorkloadClassifiersRestOperations.cs (38)
110switch (message.Response.Status) 115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 117return Response.FromValue(value, message.Response); 120return Response.FromValue((WorkloadClassifierData)null, message.Response); 122throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164switch (message.Response.Status) 169using var document = JsonDocument.Parse(message.Response.ContentStream); 171return Response.FromValue(value, message.Response); 174return Response.FromValue((WorkloadClassifierData)null, message.Response); 176throw ClientDiagnostics.CreateRequestFailedException(message.Response); 253switch (message.Response.Status) 258return message.Response; 260throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 307switch (message.Response.Status) 312return message.Response; 314throw ClientDiagnostics.CreateRequestFailedException(message.Response); 381switch (message.Response.Status) 386return message.Response; 388throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 430switch (message.Response.Status) 435return message.Response; 437throw ClientDiagnostics.CreateRequestFailedException(message.Response); 499switch (message.Response.Status) 504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 506return Response.FromValue(value, message.Response); 509throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 546switch (message.Response.Status) 551using var document = JsonDocument.Parse(message.Response.ContentStream); 553return Response.FromValue(value, message.Response); 556throw ClientDiagnostics.CreateRequestFailedException(message.Response); 612switch (message.Response.Status) 617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 619return Response.FromValue(value, message.Response); 622throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 664switch (message.Response.Status) 669using var document = JsonDocument.Parse(message.Response.ContentStream); 671return Response.FromValue(value, message.Response); 674throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WorkloadGroupsRestOperations.cs (38)
103switch (message.Response.Status) 108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 110return Response.FromValue(value, message.Response); 113return Response.FromValue((WorkloadGroupData)null, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162return Response.FromValue((WorkloadGroupData)null, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 234switch (message.Response.Status) 239return message.Response; 241throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 283switch (message.Response.Status) 288return message.Response; 290throw ClientDiagnostics.CreateRequestFailedException(message.Response); 350switch (message.Response.Status) 355return message.Response; 357throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 394switch (message.Response.Status) 399return message.Response; 401throw ClientDiagnostics.CreateRequestFailedException(message.Response); 456switch (message.Response.Status) 461using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 463return Response.FromValue(value, message.Response); 466throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 498switch (message.Response.Status) 503using var document = JsonDocument.Parse(message.Response.ContentStream); 505return Response.FromValue(value, message.Response); 508throw ClientDiagnostics.CreateRequestFailedException(message.Response); 559switch (message.Response.Status) 564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 566return Response.FromValue(value, message.Response); 569throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 606switch (message.Response.Status) 611using var document = JsonDocument.Parse(message.Response.ContentStream); 613return Response.FromValue(value, message.Response); 616throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.Storage (781)
Generated\RestOperations\BlobContainersRestOperations.cs (120)
105switch (message.Response.Status) 110using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 112return Response.FromValue(value, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw ClientDiagnostics.CreateRequestFailedException(message.Response); 218switch (message.Response.Status) 224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 226return Response.FromValue(value, message.Response); 229throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 266switch (message.Response.Status) 272using var document = JsonDocument.Parse(message.Response.ContentStream); 274return Response.FromValue(value, message.Response); 277throw ClientDiagnostics.CreateRequestFailedException(message.Response); 340switch (message.Response.Status) 345using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 347return Response.FromValue(value, message.Response); 350throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 387switch (message.Response.Status) 392using var document = JsonDocument.Parse(message.Response.ContentStream); 394return Response.FromValue(value, message.Response); 397throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451switch (message.Response.Status) 456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 458return Response.FromValue(value, message.Response); 461return Response.FromValue((BlobContainerData)null, message.Response); 463throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 495switch (message.Response.Status) 500using var document = JsonDocument.Parse(message.Response.ContentStream); 502return Response.FromValue(value, message.Response); 505return Response.FromValue((BlobContainerData)null, message.Response); 507throw ClientDiagnostics.CreateRequestFailedException(message.Response); 560switch (message.Response.Status) 564return message.Response; 566throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 598switch (message.Response.Status) 602return message.Response; 604throw ClientDiagnostics.CreateRequestFailedException(message.Response); 668switch (message.Response.Status) 673using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 675return Response.FromValue(value, message.Response); 678throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 715switch (message.Response.Status) 720using var document = JsonDocument.Parse(message.Response.ContentStream); 722return Response.FromValue(value, message.Response); 725throw ClientDiagnostics.CreateRequestFailedException(message.Response); 789switch (message.Response.Status) 794using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 796return Response.FromValue(value, message.Response); 799throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 836switch (message.Response.Status) 841using var document = JsonDocument.Parse(message.Response.ContentStream); 843return Response.FromValue(value, message.Response); 846throw ClientDiagnostics.CreateRequestFailedException(message.Response); 915switch (message.Response.Status) 920using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 922return Response.FromValue(value, message.Response); 925throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 959switch (message.Response.Status) 964using var document = JsonDocument.Parse(message.Response.ContentStream); 966return Response.FromValue(value, message.Response); 969throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1030switch (message.Response.Status) 1035using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1037return Response.FromValue(value, message.Response); 1040return Response.FromValue((ImmutabilityPolicyData)null, message.Response); 1042throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1075switch (message.Response.Status) 1080using var document = JsonDocument.Parse(message.Response.ContentStream); 1082return Response.FromValue(value, message.Response); 1085return Response.FromValue((ImmutabilityPolicyData)null, message.Response); 1087throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1149switch (message.Response.Status) 1154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1156return Response.FromValue(value, message.Response); 1159throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1196switch (message.Response.Status) 1201using var document = JsonDocument.Parse(message.Response.ContentStream); 1203return Response.FromValue(value, message.Response); 1206throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1267switch (message.Response.Status) 1272using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1274return Response.FromValue(value, message.Response); 1277throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1314switch (message.Response.Status) 1319using var document = JsonDocument.Parse(message.Response.ContentStream); 1321return Response.FromValue(value, message.Response); 1324throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1393switch (message.Response.Status) 1398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1400return Response.FromValue(value, message.Response); 1403throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1441switch (message.Response.Status) 1446using var document = JsonDocument.Parse(message.Response.ContentStream); 1448return Response.FromValue(value, message.Response); 1451throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1514switch (message.Response.Status) 1519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1521return Response.FromValue(value, message.Response); 1524throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1557switch (message.Response.Status) 1562using var document = JsonDocument.Parse(message.Response.ContentStream); 1564return Response.FromValue(value, message.Response); 1567throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1622switch (message.Response.Status) 1626return message.Response; 1628throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1660switch (message.Response.Status) 1664return message.Response; 1666throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1715switch (message.Response.Status) 1720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1722return Response.FromValue(value, message.Response); 1725throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1760switch (message.Response.Status) 1765using var document = JsonDocument.Parse(message.Response.ContentStream); 1767return Response.FromValue(value, message.Response); 1770throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BlobInventoryPoliciesRestOperations.cs (32)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((BlobInventoryPolicyData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((BlobInventoryPolicyData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256throw ClientDiagnostics.CreateRequestFailedException(message.Response); 306switch (message.Response.Status) 310return message.Response; 312throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 340switch (message.Response.Status) 344return message.Response; 346throw ClientDiagnostics.CreateRequestFailedException(message.Response); 394switch (message.Response.Status) 399using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 401return Response.FromValue(value, message.Response); 404throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 431switch (message.Response.Status) 436using var document = JsonDocument.Parse(message.Response.ContentStream); 438return Response.FromValue(value, message.Response); 441throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BlobServicesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 195switch (message.Response.Status) 200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 202return Response.FromValue(value, message.Response); 205throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306return Response.FromValue((BlobServiceData)null, message.Response); 308throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345return Response.FromValue((BlobServiceData)null, message.Response); 347throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeletedAccountsRestOperations.cs (26)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 160switch (message.Response.Status) 165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 167return Response.FromValue(value, message.Response); 170return Response.FromValue((DeletedAccountData)null, message.Response); 172throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 199switch (message.Response.Status) 204using var document = JsonDocument.Parse(message.Response.ContentStream); 206return Response.FromValue(value, message.Response); 209return Response.FromValue((DeletedAccountData)null, message.Response); 211throw ClientDiagnostics.CreateRequestFailedException(message.Response); 247switch (message.Response.Status) 252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 254return Response.FromValue(value, message.Response); 257throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 279switch (message.Response.Status) 284using var document = JsonDocument.Parse(message.Response.ContentStream); 286return Response.FromValue(value, message.Response); 289throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EncryptionScopesRestOperations.cs (42)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 153switch (message.Response.Status) 159using var document = JsonDocument.Parse(message.Response.ContentStream); 161return Response.FromValue(value, message.Response); 164throw ClientDiagnostics.CreateRequestFailedException(message.Response); 227switch (message.Response.Status) 232using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 234return Response.FromValue(value, message.Response); 237throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 274switch (message.Response.Status) 279using var document = JsonDocument.Parse(message.Response.ContentStream); 281return Response.FromValue(value, message.Response); 284throw ClientDiagnostics.CreateRequestFailedException(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return Response.FromValue(value, message.Response); 348return Response.FromValue((EncryptionScopeData)null, message.Response); 350throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 382switch (message.Response.Status) 387using var document = JsonDocument.Parse(message.Response.ContentStream); 389return Response.FromValue(value, message.Response); 392return Response.FromValue((EncryptionScopeData)null, message.Response); 394throw ClientDiagnostics.CreateRequestFailedException(message.Response); 442switch (message.Response.Status) 447using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 449return Response.FromValue(value, message.Response); 452throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw ClientDiagnostics.CreateRequestFailedException(message.Response); 535switch (message.Response.Status) 540using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 542return Response.FromValue(value, message.Response); 545throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 577switch (message.Response.Status) 582using var document = JsonDocument.Parse(message.Response.ContentStream); 584return Response.FromValue(value, message.Response); 587throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FileServicesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 195switch (message.Response.Status) 200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 202return Response.FromValue(value, message.Response); 205throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306return Response.FromValue((FileServiceData)null, message.Response); 308throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345return Response.FromValue((FileServiceData)null, message.Response); 347throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FileSharesRestOperations.cs (62)
105switch (message.Response.Status) 110using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 112return Response.FromValue(value, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 145switch (message.Response.Status) 150using var document = JsonDocument.Parse(message.Response.ContentStream); 152return Response.FromValue(value, message.Response); 155throw ClientDiagnostics.CreateRequestFailedException(message.Response); 223switch (message.Response.Status) 229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 231return Response.FromValue(value, message.Response); 234throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 272switch (message.Response.Status) 278using var document = JsonDocument.Parse(message.Response.ContentStream); 280return Response.FromValue(value, message.Response); 283throw ClientDiagnostics.CreateRequestFailedException(message.Response); 346switch (message.Response.Status) 351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 353return Response.FromValue(value, message.Response); 356throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 393switch (message.Response.Status) 398using var document = JsonDocument.Parse(message.Response.ContentStream); 400return Response.FromValue(value, message.Response); 403throw ClientDiagnostics.CreateRequestFailedException(message.Response); 467switch (message.Response.Status) 472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 474return Response.FromValue(value, message.Response); 477return Response.FromValue((FileShareData)null, message.Response); 479throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 513switch (message.Response.Status) 518using var document = JsonDocument.Parse(message.Response.ContentStream); 520return Response.FromValue(value, message.Response); 523return Response.FromValue((FileShareData)null, message.Response); 525throw ClientDiagnostics.CreateRequestFailedException(message.Response); 589switch (message.Response.Status) 593return message.Response; 595throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 629switch (message.Response.Status) 633return message.Response; 635throw ClientDiagnostics.CreateRequestFailedException(message.Response); 699switch (message.Response.Status) 702return message.Response; 704throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 741switch (message.Response.Status) 744return message.Response; 746throw ClientDiagnostics.CreateRequestFailedException(message.Response); 814switch (message.Response.Status) 819using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 821return Response.FromValue(value, message.Response); 824throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 858switch (message.Response.Status) 863using var document = JsonDocument.Parse(message.Response.ContentStream); 865return Response.FromValue(value, message.Response); 868throw ClientDiagnostics.CreateRequestFailedException(message.Response); 917switch (message.Response.Status) 922using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 924return Response.FromValue(value, message.Response); 927throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 962switch (message.Response.Status) 967using var document = JsonDocument.Parse(message.Response.ContentStream); 969return Response.FromValue(value, message.Response); 972throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LocalUsersRestOperations.cs (48)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((LocalUserData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((LocalUserData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 317return Response.FromValue(value, message.Response); 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362using var document = JsonDocument.Parse(message.Response.ContentStream); 364return Response.FromValue(value, message.Response); 367throw ClientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 425return message.Response; 427throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 463return message.Response; 465throw ClientDiagnostics.CreateRequestFailedException(message.Response); 520switch (message.Response.Status) 525using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 527return Response.FromValue(value, message.Response); 530throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 562switch (message.Response.Status) 567using var document = JsonDocument.Parse(message.Response.ContentStream); 569return Response.FromValue(value, message.Response); 572throw ClientDiagnostics.CreateRequestFailedException(message.Response); 627switch (message.Response.Status) 632using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 634return Response.FromValue(value, message.Response); 637throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 669switch (message.Response.Status) 674using var document = JsonDocument.Parse(message.Response.ContentStream); 676return Response.FromValue(value, message.Response); 679throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagementPoliciesRestOperations.cs (24)
92switch (message.Response.Status) 97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 99return Response.FromValue(value, message.Response); 102return Response.FromValue((ManagementPolicyData)null, message.Response); 104throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 132switch (message.Response.Status) 137using var document = JsonDocument.Parse(message.Response.ContentStream); 139return Response.FromValue(value, message.Response); 142return Response.FromValue((ManagementPolicyData)null, message.Response); 144throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 246switch (message.Response.Status) 251using var document = JsonDocument.Parse(message.Response.ContentStream); 253return Response.FromValue(value, message.Response); 256throw ClientDiagnostics.CreateRequestFailedException(message.Response); 305switch (message.Response.Status) 309return message.Response; 311throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 339switch (message.Response.Status) 343return message.Response; 345throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ObjectReplicationPoliciesRestOperations.cs (32)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((ObjectReplicationPolicyData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((ObjectReplicationPolicyData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 317return Response.FromValue(value, message.Response); 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362using var document = JsonDocument.Parse(message.Response.ContentStream); 364return Response.FromValue(value, message.Response); 367throw ClientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 425return message.Response; 427throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 463return message.Response; 465throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (32)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 191switch (message.Response.Status) 196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 198return Response.FromValue(value, message.Response); 201return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 203throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 235switch (message.Response.Status) 240using var document = JsonDocument.Parse(message.Response.ContentStream); 242return Response.FromValue(value, message.Response); 245return Response.FromValue((PrivateEndpointConnectionData)null, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 310switch (message.Response.Status) 315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 317return Response.FromValue(value, message.Response); 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 357switch (message.Response.Status) 362using var document = JsonDocument.Parse(message.Response.ContentStream); 364return Response.FromValue(value, message.Response); 367throw ClientDiagnostics.CreateRequestFailedException(message.Response); 421switch (message.Response.Status) 425return message.Response; 427throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 459switch (message.Response.Status) 463return message.Response; 465throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkResourcesRestOperations.cs (8)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\QueueRestOperations.cs (48)
105switch (message.Response.Status) 110using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 112return Response.FromValue(value, message.Response); 115throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 152switch (message.Response.Status) 157using var document = JsonDocument.Parse(message.Response.ContentStream); 159return Response.FromValue(value, message.Response); 162throw ClientDiagnostics.CreateRequestFailedException(message.Response); 225switch (message.Response.Status) 230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 232return Response.FromValue(value, message.Response); 235throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 272switch (message.Response.Status) 277using var document = JsonDocument.Parse(message.Response.ContentStream); 279return Response.FromValue(value, message.Response); 282throw ClientDiagnostics.CreateRequestFailedException(message.Response); 336switch (message.Response.Status) 341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 343return Response.FromValue(value, message.Response); 346return Response.FromValue((StorageQueueData)null, message.Response); 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380switch (message.Response.Status) 385using var document = JsonDocument.Parse(message.Response.ContentStream); 387return Response.FromValue(value, message.Response); 390return Response.FromValue((StorageQueueData)null, message.Response); 392throw ClientDiagnostics.CreateRequestFailedException(message.Response); 446switch (message.Response.Status) 449return message.Response; 451throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 483switch (message.Response.Status) 486return message.Response; 488throw ClientDiagnostics.CreateRequestFailedException(message.Response); 546switch (message.Response.Status) 551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 553return Response.FromValue(value, message.Response); 556throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595throw ClientDiagnostics.CreateRequestFailedException(message.Response); 643switch (message.Response.Status) 648using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 650return Response.FromValue(value, message.Response); 653throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 687switch (message.Response.Status) 692using var document = JsonDocument.Parse(message.Response.ContentStream); 694return Response.FromValue(value, message.Response); 697throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\QueueServicesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 195switch (message.Response.Status) 200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 202return Response.FromValue(value, message.Response); 205throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306return Response.FromValue((QueueServiceData)null, message.Response); 308throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345return Response.FromValue((QueueServiceData)null, message.Response); 347throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SkusRestOperations.cs (8)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\StorageAccountsRestOperations.cs (132)
85switch (message.Response.Status) 90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 92return Response.FromValue(value, message.Response); 95throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 117switch (message.Response.Status) 122using var document = JsonDocument.Parse(message.Response.ContentStream); 124return Response.FromValue(value, message.Response); 127throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 187return message.Response; 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 225return message.Response; 227throw ClientDiagnostics.CreateRequestFailedException(message.Response); 273switch (message.Response.Status) 277return message.Response; 279throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 306switch (message.Response.Status) 310return message.Response; 312throw ClientDiagnostics.CreateRequestFailedException(message.Response); 364switch (message.Response.Status) 369using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 371return Response.FromValue(value, message.Response); 374return Response.FromValue((StorageAccountData)null, message.Response); 376throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 404switch (message.Response.Status) 409using var document = JsonDocument.Parse(message.Response.ContentStream); 411return Response.FromValue(value, message.Response); 414return Response.FromValue((StorageAccountData)null, message.Response); 416throw ClientDiagnostics.CreateRequestFailedException(message.Response); 472switch (message.Response.Status) 477using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 479return Response.FromValue(value, message.Response); 482throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 514switch (message.Response.Status) 519using var document = JsonDocument.Parse(message.Response.ContentStream); 521return Response.FromValue(value, message.Response); 524throw ClientDiagnostics.CreateRequestFailedException(message.Response); 558switch (message.Response.Status) 563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 565return Response.FromValue(value, message.Response); 568throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 585switch (message.Response.Status) 590using var document = JsonDocument.Parse(message.Response.ContentStream); 592return Response.FromValue(value, message.Response); 595throw ClientDiagnostics.CreateRequestFailedException(message.Response); 636switch (message.Response.Status) 641using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 643return Response.FromValue(value, message.Response); 646throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 668switch (message.Response.Status) 673using var document = JsonDocument.Parse(message.Response.ContentStream); 675return Response.FromValue(value, message.Response); 678throw ClientDiagnostics.CreateRequestFailedException(message.Response); 727switch (message.Response.Status) 732using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 734return Response.FromValue(value, message.Response); 737throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 764switch (message.Response.Status) 769using var document = JsonDocument.Parse(message.Response.ContentStream); 771return Response.FromValue(value, message.Response); 774throw ClientDiagnostics.CreateRequestFailedException(message.Response); 831switch (message.Response.Status) 836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 838return Response.FromValue(value, message.Response); 841throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 873switch (message.Response.Status) 878using var document = JsonDocument.Parse(message.Response.ContentStream); 880return Response.FromValue(value, message.Response); 883throw ClientDiagnostics.CreateRequestFailedException(message.Response); 940switch (message.Response.Status) 945using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 947return Response.FromValue(value, message.Response); 950throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 982switch (message.Response.Status) 987using var document = JsonDocument.Parse(message.Response.ContentStream); 989return Response.FromValue(value, message.Response); 992throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1049switch (message.Response.Status) 1054using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1056return Response.FromValue(value, message.Response); 1059throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1091switch (message.Response.Status) 1096using var document = JsonDocument.Parse(message.Response.ContentStream); 1098return Response.FromValue(value, message.Response); 1101throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1148switch (message.Response.Status) 1152return message.Response; 1154throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1181switch (message.Response.Status) 1185return message.Response; 1187throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1241switch (message.Response.Status) 1245return message.Response; 1247throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1279switch (message.Response.Status) 1283return message.Response; 1285throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1333switch (message.Response.Status) 1337return message.Response; 1339throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1366switch (message.Response.Status) 1370return message.Response; 1372throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1429switch (message.Response.Status) 1433return message.Response; 1435throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1467switch (message.Response.Status) 1471return message.Response; 1473throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1520switch (message.Response.Status) 1523return message.Response; 1525throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1552switch (message.Response.Status) 1555return message.Response; 1557throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1593switch (message.Response.Status) 1598using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1600return Response.FromValue(value, message.Response); 1603throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1625switch (message.Response.Status) 1630using var document = JsonDocument.Parse(message.Response.ContentStream); 1632return Response.FromValue(value, message.Response); 1635throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1676switch (message.Response.Status) 1681using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1683return Response.FromValue(value, message.Response); 1686throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1713switch (message.Response.Status) 1718using var document = JsonDocument.Parse(message.Response.ContentStream); 1720return Response.FromValue(value, message.Response); 1723throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TableRestOperations.cs (48)
96switch (message.Response.Status) 101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 103return Response.FromValue(value, message.Response); 106throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 138switch (message.Response.Status) 143using var document = JsonDocument.Parse(message.Response.ContentStream); 145return Response.FromValue(value, message.Response); 148throw ClientDiagnostics.CreateRequestFailedException(message.Response); 202switch (message.Response.Status) 207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 209return Response.FromValue(value, message.Response); 212throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 244switch (message.Response.Status) 249using var document = JsonDocument.Parse(message.Response.ContentStream); 251return Response.FromValue(value, message.Response); 254throw ClientDiagnostics.CreateRequestFailedException(message.Response); 308switch (message.Response.Status) 313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 315return Response.FromValue(value, message.Response); 318return Response.FromValue((TableData)null, message.Response); 320throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 352switch (message.Response.Status) 357using var document = JsonDocument.Parse(message.Response.ContentStream); 359return Response.FromValue(value, message.Response); 362return Response.FromValue((TableData)null, message.Response); 364throw ClientDiagnostics.CreateRequestFailedException(message.Response); 418switch (message.Response.Status) 421return message.Response; 423throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 455switch (message.Response.Status) 458return message.Response; 460throw ClientDiagnostics.CreateRequestFailedException(message.Response); 508switch (message.Response.Status) 513using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 515return Response.FromValue(value, message.Response); 518throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 545switch (message.Response.Status) 550using var document = JsonDocument.Parse(message.Response.ContentStream); 552return Response.FromValue(value, message.Response); 555throw ClientDiagnostics.CreateRequestFailedException(message.Response); 601switch (message.Response.Status) 606using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 608return Response.FromValue(value, message.Response); 611throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 643switch (message.Response.Status) 648using var document = JsonDocument.Parse(message.Response.ContentStream); 650return Response.FromValue(value, message.Response); 653throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TableServicesRestOperations.cs (26)
90switch (message.Response.Status) 95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 97return Response.FromValue(value, message.Response); 100throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 127switch (message.Response.Status) 132using var document = JsonDocument.Parse(message.Response.ContentStream); 134return Response.FromValue(value, message.Response); 137throw ClientDiagnostics.CreateRequestFailedException(message.Response); 195switch (message.Response.Status) 200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 202return Response.FromValue(value, message.Response); 205throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237switch (message.Response.Status) 242using var document = JsonDocument.Parse(message.Response.ContentStream); 244return Response.FromValue(value, message.Response); 247throw ClientDiagnostics.CreateRequestFailedException(message.Response); 296switch (message.Response.Status) 301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 303return Response.FromValue(value, message.Response); 306return Response.FromValue((TableServiceData)null, message.Response); 308throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 335switch (message.Response.Status) 340using var document = JsonDocument.Parse(message.Response.ContentStream); 342return Response.FromValue(value, message.Response); 345return Response.FromValue((TableServiceData)null, message.Response); 347throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\UsagesRestOperations.cs (8)
83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return Response.FromValue(value, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115switch (message.Response.Status) 120using var document = JsonDocument.Parse(message.Response.ContentStream); 122return Response.FromValue(value, message.Response); 125throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.ResourceManager.Tests (1)
Scenario\ResponseExtensionsTests.cs (1)
37var response = message.Response;
Azure.Search.Documents (323)
Generated\DataSourcesRestClient.cs (38)
99switch (message.Response.Status) 105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 107return Response.FromValue(value, message.Response); 110throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 135switch (message.Response.Status) 141using var document = JsonDocument.Parse(message.Response.ContentStream); 143return Response.FromValue(value, message.Response); 146throw ClientDiagnostics.CreateRequestFailedException(message.Response); 189switch (message.Response.Status) 193return message.Response; 195throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 214switch (message.Response.Status) 218return message.Response; 220throw ClientDiagnostics.CreateRequestFailedException(message.Response); 253switch (message.Response.Status) 258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 260return Response.FromValue(value, message.Response); 263throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280switch (message.Response.Status) 285using var document = JsonDocument.Parse(message.Response.ContentStream); 287return Response.FromValue(value, message.Response); 290throw ClientDiagnostics.CreateRequestFailedException(message.Response); 319switch (message.Response.Status) 324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 326return Response.FromValue(value, message.Response); 329throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 340switch (message.Response.Status) 345using var document = JsonDocument.Parse(message.Response.ContentStream); 347return Response.FromValue(value, message.Response); 350throw ClientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 392return Response.FromValue(value, message.Response); 395throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 412switch (message.Response.Status) 417using var document = JsonDocument.Parse(message.Response.ContentStream); 419return Response.FromValue(value, message.Response); 422throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DocumentsRestClient.cs (48)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 92switch (message.Response.Status) 97using var document = JsonDocument.Parse(message.Response.ContentStream); 99return Response.FromValue(value, message.Response); 102throw ClientDiagnostics.CreateRequestFailedException(message.Response); 140switch (message.Response.Status) 145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 147return Response.FromValue(value, message.Response); 150throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 167switch (message.Response.Status) 172using var document = JsonDocument.Parse(message.Response.ContentStream); 174return Response.FromValue(value, message.Response); 177throw ClientDiagnostics.CreateRequestFailedException(message.Response); 218switch (message.Response.Status) 223using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 230return Response.FromValue(value, message.Response); 233throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 251switch (message.Response.Status) 256using var document = JsonDocument.Parse(message.Response.ContentStream); 263return Response.FromValue(value, message.Response); 266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 304switch (message.Response.Status) 309using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 311return Response.FromValue(value, message.Response); 314throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 331switch (message.Response.Status) 336using var document = JsonDocument.Parse(message.Response.ContentStream); 338return Response.FromValue(value, message.Response); 341throw ClientDiagnostics.CreateRequestFailedException(message.Response); 379switch (message.Response.Status) 385using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 387return Response.FromValue(value, message.Response); 390throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 407switch (message.Response.Status) 413using var document = JsonDocument.Parse(message.Response.ContentStream); 415return Response.FromValue(value, message.Response); 418throw ClientDiagnostics.CreateRequestFailedException(message.Response); 456switch (message.Response.Status) 461using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 463return Response.FromValue(value, message.Response); 466throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 483switch (message.Response.Status) 488using var document = JsonDocument.Parse(message.Response.ContentStream); 490return Response.FromValue(value, message.Response); 493throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IndexersRestClient.cs (64)
75switch (message.Response.Status) 78return message.Response; 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 100return message.Response; 102throw ClientDiagnostics.CreateRequestFailedException(message.Response); 148switch (message.Response.Status) 151return message.Response; 153throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 172switch (message.Response.Status) 175return message.Response; 177throw ClientDiagnostics.CreateRequestFailedException(message.Response); 210switch (message.Response.Status) 213return message.Response; 215throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 232switch (message.Response.Status) 235return message.Response; 237throw ClientDiagnostics.CreateRequestFailedException(message.Response); 300switch (message.Response.Status) 306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 308return Response.FromValue(value, message.Response); 311throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 337switch (message.Response.Status) 343using var document = JsonDocument.Parse(message.Response.ContentStream); 345return Response.FromValue(value, message.Response); 348throw ClientDiagnostics.CreateRequestFailedException(message.Response); 391switch (message.Response.Status) 395return message.Response; 397throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 416switch (message.Response.Status) 420return message.Response; 422throw ClientDiagnostics.CreateRequestFailedException(message.Response); 455switch (message.Response.Status) 460using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 462return Response.FromValue(value, message.Response); 465throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482switch (message.Response.Status) 487using var document = JsonDocument.Parse(message.Response.ContentStream); 489return Response.FromValue(value, message.Response); 492throw ClientDiagnostics.CreateRequestFailedException(message.Response); 521switch (message.Response.Status) 526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 528return Response.FromValue(value, message.Response); 531throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 542switch (message.Response.Status) 547using var document = JsonDocument.Parse(message.Response.ContentStream); 549return Response.FromValue(value, message.Response); 552throw ClientDiagnostics.CreateRequestFailedException(message.Response); 587switch (message.Response.Status) 592using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 594return Response.FromValue(value, message.Response); 597throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 614switch (message.Response.Status) 619using var document = JsonDocument.Parse(message.Response.ContentStream); 621return Response.FromValue(value, message.Response); 624throw ClientDiagnostics.CreateRequestFailedException(message.Response); 657switch (message.Response.Status) 662using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 664return Response.FromValue(value, message.Response); 667throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 684switch (message.Response.Status) 689using var document = JsonDocument.Parse(message.Response.ContentStream); 691return Response.FromValue(value, message.Response); 694throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IndexesRestClient.cs (54)
76switch (message.Response.Status) 81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 83return Response.FromValue(value, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103switch (message.Response.Status) 108using var document = JsonDocument.Parse(message.Response.ContentStream); 110return Response.FromValue(value, message.Response); 113throw ClientDiagnostics.CreateRequestFailedException(message.Response); 142switch (message.Response.Status) 147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 149return Response.FromValue(value, message.Response); 152throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 163switch (message.Response.Status) 168using var document = JsonDocument.Parse(message.Response.ContentStream); 170return Response.FromValue(value, message.Response); 173throw ClientDiagnostics.CreateRequestFailedException(message.Response); 231switch (message.Response.Status) 237using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 239return Response.FromValue(value, message.Response); 242throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 267switch (message.Response.Status) 273using var document = JsonDocument.Parse(message.Response.ContentStream); 275return Response.FromValue(value, message.Response); 278throw ClientDiagnostics.CreateRequestFailedException(message.Response); 321switch (message.Response.Status) 325return message.Response; 327throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 346switch (message.Response.Status) 350return message.Response; 352throw ClientDiagnostics.CreateRequestFailedException(message.Response); 385switch (message.Response.Status) 390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 392return Response.FromValue(value, message.Response); 395throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 412switch (message.Response.Status) 417using var document = JsonDocument.Parse(message.Response.ContentStream); 419return Response.FromValue(value, message.Response); 422throw ClientDiagnostics.CreateRequestFailedException(message.Response); 455switch (message.Response.Status) 460using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 462return Response.FromValue(value, message.Response); 465throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 482switch (message.Response.Status) 487using var document = JsonDocument.Parse(message.Response.ContentStream); 489return Response.FromValue(value, message.Response); 492throw ClientDiagnostics.CreateRequestFailedException(message.Response); 534switch (message.Response.Status) 539using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 541return Response.FromValue(value, message.Response); 544throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 566switch (message.Response.Status) 571using var document = JsonDocument.Parse(message.Response.ContentStream); 573return Response.FromValue(value, message.Response); 576throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SearchServiceRestClient.cs (8)
65switch (message.Response.Status) 70using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 72return Response.FromValue(value, message.Response); 75throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 85switch (message.Response.Status) 90using var document = JsonDocument.Parse(message.Response.ContentStream); 92return Response.FromValue(value, message.Response); 95throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SkillsetsRestClient.cs (44)
105switch (message.Response.Status) 111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 113return Response.FromValue(value, message.Response); 116throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 142switch (message.Response.Status) 148using var document = JsonDocument.Parse(message.Response.ContentStream); 150return Response.FromValue(value, message.Response); 153throw ClientDiagnostics.CreateRequestFailedException(message.Response); 196switch (message.Response.Status) 200return message.Response; 202throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 221switch (message.Response.Status) 225return message.Response; 227throw ClientDiagnostics.CreateRequestFailedException(message.Response); 260switch (message.Response.Status) 265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 267return Response.FromValue(value, message.Response); 270throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 287switch (message.Response.Status) 292using var document = JsonDocument.Parse(message.Response.ContentStream); 294return Response.FromValue(value, message.Response); 297throw ClientDiagnostics.CreateRequestFailedException(message.Response); 326switch (message.Response.Status) 331using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 333return Response.FromValue(value, message.Response); 336throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 347switch (message.Response.Status) 352using var document = JsonDocument.Parse(message.Response.ContentStream); 354return Response.FromValue(value, message.Response); 357throw ClientDiagnostics.CreateRequestFailedException(message.Response); 392switch (message.Response.Status) 397using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 399return Response.FromValue(value, message.Response); 402throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 419switch (message.Response.Status) 424using var document = JsonDocument.Parse(message.Response.ContentStream); 426return Response.FromValue(value, message.Response); 429throw ClientDiagnostics.CreateRequestFailedException(message.Response); 471switch (message.Response.Status) 474return message.Response; 476throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 498switch (message.Response.Status) 501return message.Response; 503throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SynonymMapsRestClient.cs (38)
94switch (message.Response.Status) 100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 102return Response.FromValue(value, message.Response); 105throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 129switch (message.Response.Status) 135using var document = JsonDocument.Parse(message.Response.ContentStream); 137return Response.FromValue(value, message.Response); 140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 183switch (message.Response.Status) 187return message.Response; 189throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 208switch (message.Response.Status) 212return message.Response; 214throw ClientDiagnostics.CreateRequestFailedException(message.Response); 247switch (message.Response.Status) 252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 254return Response.FromValue(value, message.Response); 257throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 274switch (message.Response.Status) 279using var document = JsonDocument.Parse(message.Response.ContentStream); 281return Response.FromValue(value, message.Response); 284throw ClientDiagnostics.CreateRequestFailedException(message.Response); 313switch (message.Response.Status) 318using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 320return Response.FromValue(value, message.Response); 323throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 334switch (message.Response.Status) 339using var document = JsonDocument.Parse(message.Response.ContentStream); 341return Response.FromValue(value, message.Response); 344throw ClientDiagnostics.CreateRequestFailedException(message.Response); 379switch (message.Response.Status) 384using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 386return Response.FromValue(value, message.Response); 389throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 406switch (message.Response.Status) 411using var document = JsonDocument.Parse(message.Response.ContentStream); 413return Response.FromValue(value, message.Response); 416throw ClientDiagnostics.CreateRequestFailedException(message.Response);
SearchClient.cs (22)
696switch (message.Response.Status) 700T value = await message.Response.ContentStream.DeserializeAsync<T>( 705return Response.FromValue(value, message.Response); 709await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 710ClientDiagnostics.CreateRequestFailedException(message.Response); 879switch (message.Response.Status) 885message.Response.ContentStream, 893results.ConfigurePaging(this, message.Response); 895return Response.FromValue(results, message.Response); 899await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 900ClientDiagnostics.CreateRequestFailedException(message.Response); 1050switch (message.Response.Status) 1055message.Response.ContentStream, 1060return Response.FromValue(suggestions, message.Response); 1064await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 1065ClientDiagnostics.CreateRequestFailedException(message.Response); 1350switch (message.Response.Status) 1357await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false) : 1358JsonDocument.Parse(message.Response.ContentStream, default); 1391return Response.FromValue(value, message.Response); 1395await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) : 1396ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Security.Attestation (95)
Generated\AttestationRestClient.cs (24)
72switch (message.Response.Status) 77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 79return Response.FromValue(value, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 99switch (message.Response.Status) 104using var document = JsonDocument.Parse(message.Response.ContentStream); 106return Response.FromValue(value, message.Response); 109throw ClientDiagnostics.CreateRequestFailedException(message.Response); 144switch (message.Response.Status) 149using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 151return Response.FromValue(value, message.Response); 154throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 171switch (message.Response.Status) 176using var document = JsonDocument.Parse(message.Response.ContentStream); 178return Response.FromValue(value, message.Response); 181throw ClientDiagnostics.CreateRequestFailedException(message.Response); 216switch (message.Response.Status) 221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 223return Response.FromValue(value, message.Response); 226throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 243switch (message.Response.Status) 248using var document = JsonDocument.Parse(message.Response.ContentStream); 250return Response.FromValue(value, message.Response); 253throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetadataConfigurationRestClient.cs (8)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyCertificatesRestClient.cs (24)
61switch (message.Response.Status) 66using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 68return Response.FromValue(value, message.Response); 71throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 81switch (message.Response.Status) 86using var document = JsonDocument.Parse(message.Response.ContentStream); 88return Response.FromValue(value, message.Response); 91throw ClientDiagnostics.CreateRequestFailedException(message.Response); 126switch (message.Response.Status) 131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 133return Response.FromValue(value, message.Response); 136throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 153switch (message.Response.Status) 158using var document = JsonDocument.Parse(message.Response.ContentStream); 160return Response.FromValue(value, message.Response); 163throw ClientDiagnostics.CreateRequestFailedException(message.Response); 198switch (message.Response.Status) 203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 205return Response.FromValue(value, message.Response); 208throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 225switch (message.Response.Status) 230using var document = JsonDocument.Parse(message.Response.ContentStream); 232return Response.FromValue(value, message.Response); 235throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyRestClient.cs (24)
63switch (message.Response.Status) 68using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 70return Response.FromValue(value, message.Response); 73throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 84switch (message.Response.Status) 89using var document = JsonDocument.Parse(message.Response.ContentStream); 91return Response.FromValue(value, message.Response); 94throw ClientDiagnostics.CreateRequestFailedException(message.Response); 129switch (message.Response.Status) 134using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 136return Response.FromValue(value, message.Response); 139throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 157switch (message.Response.Status) 162using var document = JsonDocument.Parse(message.Response.ContentStream); 164return Response.FromValue(value, message.Response); 167throw ClientDiagnostics.CreateRequestFailedException(message.Response); 203switch (message.Response.Status) 208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 210return Response.FromValue(value, message.Response); 213throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 231switch (message.Response.Status) 236using var document = JsonDocument.Parse(message.Response.ContentStream); 238return Response.FromValue(value, message.Response); 241throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SigningCertificatesRestClient.cs (8)
57switch (message.Response.Status) 62using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 64return Response.FromValue(value, message.Response); 67throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 77switch (message.Response.Status) 82using var document = JsonDocument.Parse(message.Response.ContentStream); 84return Response.FromValue(value, message.Response); 87throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Security.ConfidentialLedger (10)
Generated\ConfidentialLedgerClient.cs (2)
1287return message.Response.Status switch 1300return message.Response.Status switch
Generated\ConfidentialLedgerIdentityServiceClient.cs (1)
140return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Security.KeyVault.Administration (127)
ChallengeBasedAuthenticationPolicy.cs (4)
91string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource"); 98scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope"); 110string authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization"); 113authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Generated\BackupRestoreRestClient.cs (40)
74var headers = new AzureSecurityKeyVaultAdministrationFullBackupHeaders(message.Response); 75switch (message.Response.Status) 78return ResponseWithHeaders.FromValue(headers, message.Response); 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 98var headers = new AzureSecurityKeyVaultAdministrationFullBackupHeaders(message.Response); 99switch (message.Response.Status) 102return ResponseWithHeaders.FromValue(headers, message.Response); 104throw ClientDiagnostics.CreateRequestFailedException(message.Response); 142switch (message.Response.Status) 147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 149return Response.FromValue(value, message.Response); 152throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 174switch (message.Response.Status) 179using var document = JsonDocument.Parse(message.Response.ContentStream); 181return Response.FromValue(value, message.Response); 184throw ClientDiagnostics.CreateRequestFailedException(message.Response); 223var headers = new AzureSecurityKeyVaultAdministrationFullRestoreOperationHeaders(message.Response); 224switch (message.Response.Status) 227return ResponseWithHeaders.FromValue(headers, message.Response); 229throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 247var headers = new AzureSecurityKeyVaultAdministrationFullRestoreOperationHeaders(message.Response); 248switch (message.Response.Status) 251return ResponseWithHeaders.FromValue(headers, message.Response); 253throw ClientDiagnostics.CreateRequestFailedException(message.Response); 291switch (message.Response.Status) 296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 298return Response.FromValue(value, message.Response); 301throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 323switch (message.Response.Status) 328using var document = JsonDocument.Parse(message.Response.ContentStream); 330return Response.FromValue(value, message.Response); 333throw ClientDiagnostics.CreateRequestFailedException(message.Response); 379var headers = new AzureSecurityKeyVaultAdministrationSelectiveKeyRestoreOperationHeaders(message.Response); 380switch (message.Response.Status) 383return ResponseWithHeaders.FromValue(headers, message.Response); 385throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 408var headers = new AzureSecurityKeyVaultAdministrationSelectiveKeyRestoreOperationHeaders(message.Response); 409switch (message.Response.Status) 412return ResponseWithHeaders.FromValue(headers, message.Response); 414throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleAssignmentsRestClient.cs (38)
79switch (message.Response.Status) 83return message.Response; 85throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 116return message.Response; 118throw ClientDiagnostics.CreateRequestFailedException(message.Response); 171switch (message.Response.Status) 176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 178return Response.FromValue(value, message.Response); 181throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 213switch (message.Response.Status) 218using var document = JsonDocument.Parse(message.Response.ContentStream); 220return Response.FromValue(value, message.Response); 223throw ClientDiagnostics.CreateRequestFailedException(message.Response); 267switch (message.Response.Status) 272using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 274return Response.FromValue(value, message.Response); 277throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 304switch (message.Response.Status) 309using var document = JsonDocument.Parse(message.Response.ContentStream); 311return Response.FromValue(value, message.Response); 314throw ClientDiagnostics.CreateRequestFailedException(message.Response); 357switch (message.Response.Status) 362using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 364return Response.FromValue(value, message.Response); 367throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 390switch (message.Response.Status) 395using var document = JsonDocument.Parse(message.Response.ContentStream); 397return Response.FromValue(value, message.Response); 400throw ClientDiagnostics.CreateRequestFailedException(message.Response); 441switch (message.Response.Status) 446using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 448return Response.FromValue(value, message.Response); 451throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleDefinitionsRestClient.cs (38)
79switch (message.Response.Status) 83return message.Response; 85throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 112switch (message.Response.Status) 116return message.Response; 118throw ClientDiagnostics.CreateRequestFailedException(message.Response); 171switch (message.Response.Status) 176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 178return Response.FromValue(value, message.Response); 181throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 213switch (message.Response.Status) 218using var document = JsonDocument.Parse(message.Response.ContentStream); 220return Response.FromValue(value, message.Response); 223throw ClientDiagnostics.CreateRequestFailedException(message.Response); 267switch (message.Response.Status) 272using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 274return Response.FromValue(value, message.Response); 277throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 304switch (message.Response.Status) 309using var document = JsonDocument.Parse(message.Response.ContentStream); 311return Response.FromValue(value, message.Response); 314throw ClientDiagnostics.CreateRequestFailedException(message.Response); 357switch (message.Response.Status) 362using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 364return Response.FromValue(value, message.Response); 367throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 390switch (message.Response.Status) 395using var document = JsonDocument.Parse(message.Response.ContentStream); 397return Response.FromValue(value, message.Response); 400throw ClientDiagnostics.CreateRequestFailedException(message.Response); 441switch (message.Response.Status) 446using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 448return Response.FromValue(value, message.Response); 451throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 479switch (message.Response.Status) 484using var document = JsonDocument.Parse(message.Response.ContentStream); 486return Response.FromValue(value, message.Response); 489throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Security.KeyVault.Certificates (4)
ChallengeBasedAuthenticationPolicy.cs (4)
91string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource"); 98scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope"); 110string authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization"); 113authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Azure.Security.KeyVault.Keys (4)
ChallengeBasedAuthenticationPolicy.cs (4)
91string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource"); 98scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope"); 110string authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization"); 113authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Azure.Security.KeyVault.Secrets (4)
ChallengeBasedAuthenticationPolicy.cs (4)
91string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource"); 98scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "scope"); 110string authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization"); 113authorization = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri");
Azure.Storage.Blobs (610)
Generated\AppendBlobRestClient.cs (32)
173var headers = new AppendBlobCreateHeaders(message.Response); 174switch (message.Response.Status) 177return ResponseWithHeaders.FromValue(headers, message.Response); 179throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 212var headers = new AppendBlobCreateHeaders(message.Response); 213switch (message.Response.Status) 216return ResponseWithHeaders.FromValue(headers, message.Response); 218throw ClientDiagnostics.CreateRequestFailedException(message.Response); 328var headers = new AppendBlobAppendBlockHeaders(message.Response); 329switch (message.Response.Status) 332return ResponseWithHeaders.FromValue(headers, message.Response); 334throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 367var headers = new AppendBlobAppendBlockHeaders(message.Response); 368switch (message.Response.Status) 371return ResponseWithHeaders.FromValue(headers, message.Response); 373throw ClientDiagnostics.CreateRequestFailedException(message.Response); 512var headers = new AppendBlobAppendBlockFromUrlHeaders(message.Response); 513switch (message.Response.Status) 516return ResponseWithHeaders.FromValue(headers, message.Response); 518throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 558var headers = new AppendBlobAppendBlockFromUrlHeaders(message.Response); 559switch (message.Response.Status) 562return ResponseWithHeaders.FromValue(headers, message.Response); 564throw ClientDiagnostics.CreateRequestFailedException(message.Response); 623var headers = new AppendBlobSealHeaders(message.Response); 624switch (message.Response.Status) 627return ResponseWithHeaders.FromValue(headers, message.Response); 629throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 646var headers = new AppendBlobSealHeaders(message.Response); 647switch (message.Response.Status) 650return ResponseWithHeaders.FromValue(headers, message.Response); 652throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BlobRestClient.cs (188)
138var headers = new BlobDownloadHeaders(message.Response); 139switch (message.Response.Status) 145return ResponseWithHeaders.FromValue(value, headers, message.Response); 148return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response); 150throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 175var headers = new BlobDownloadHeaders(message.Response); 176switch (message.Response.Status) 182return ResponseWithHeaders.FromValue(value, headers, message.Response); 185return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response); 187throw ClientDiagnostics.CreateRequestFailedException(message.Response); 270var headers = new BlobGetPropertiesHeaders(message.Response); 271switch (message.Response.Status) 274return ResponseWithHeaders.FromValue(headers, message.Response); 276throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 298var headers = new BlobGetPropertiesHeaders(message.Response); 299switch (message.Response.Status) 302return ResponseWithHeaders.FromValue(headers, message.Response); 304throw ClientDiagnostics.CreateRequestFailedException(message.Response); 382var headers = new BlobDeleteHeaders(message.Response); 383switch (message.Response.Status) 386return ResponseWithHeaders.FromValue(headers, message.Response); 388throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 409var headers = new BlobDeleteHeaders(message.Response); 410switch (message.Response.Status) 413return ResponseWithHeaders.FromValue(headers, message.Response); 415throw ClientDiagnostics.CreateRequestFailedException(message.Response); 444var headers = new BlobUndeleteHeaders(message.Response); 445switch (message.Response.Status) 448return ResponseWithHeaders.FromValue(headers, message.Response); 450throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 461var headers = new BlobUndeleteHeaders(message.Response); 462switch (message.Response.Status) 465return ResponseWithHeaders.FromValue(headers, message.Response); 467throw ClientDiagnostics.CreateRequestFailedException(message.Response); 503var headers = new BlobSetExpiryHeaders(message.Response); 504switch (message.Response.Status) 507return ResponseWithHeaders.FromValue(headers, message.Response); 509throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 522var headers = new BlobSetExpiryHeaders(message.Response); 523switch (message.Response.Status) 526return ResponseWithHeaders.FromValue(headers, message.Response); 528throw ClientDiagnostics.CreateRequestFailedException(message.Response); 617var headers = new BlobSetHttpHeadersHeaders(message.Response); 618switch (message.Response.Status) 621return ResponseWithHeaders.FromValue(headers, message.Response); 623throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 646var headers = new BlobSetHttpHeadersHeaders(message.Response); 647switch (message.Response.Status) 650return ResponseWithHeaders.FromValue(headers, message.Response); 652throw ClientDiagnostics.CreateRequestFailedException(message.Response); 696var headers = new BlobSetImmutabilityPolicyHeaders(message.Response); 697switch (message.Response.Status) 700return ResponseWithHeaders.FromValue(headers, message.Response); 702throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 716var headers = new BlobSetImmutabilityPolicyHeaders(message.Response); 717switch (message.Response.Status) 720return ResponseWithHeaders.FromValue(headers, message.Response); 722throw ClientDiagnostics.CreateRequestFailedException(message.Response); 751var headers = new BlobDeleteImmutabilityPolicyHeaders(message.Response); 752switch (message.Response.Status) 755return ResponseWithHeaders.FromValue(headers, message.Response); 757throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 768var headers = new BlobDeleteImmutabilityPolicyHeaders(message.Response); 769switch (message.Response.Status) 772return ResponseWithHeaders.FromValue(headers, message.Response); 774throw ClientDiagnostics.CreateRequestFailedException(message.Response); 805var headers = new BlobSetLegalHoldHeaders(message.Response); 806switch (message.Response.Status) 809return ResponseWithHeaders.FromValue(headers, message.Response); 811throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 823var headers = new BlobSetLegalHoldHeaders(message.Response); 824switch (message.Response.Status) 827return ResponseWithHeaders.FromValue(headers, message.Response); 829throw ClientDiagnostics.CreateRequestFailedException(message.Response); 913var headers = new BlobSetMetadataHeaders(message.Response); 914switch (message.Response.Status) 917return ResponseWithHeaders.FromValue(headers, message.Response); 919throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 941var headers = new BlobSetMetadataHeaders(message.Response); 942switch (message.Response.Status) 945return ResponseWithHeaders.FromValue(headers, message.Response); 947throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1012var headers = new BlobAcquireLeaseHeaders(message.Response); 1013switch (message.Response.Status) 1016return ResponseWithHeaders.FromValue(headers, message.Response); 1018throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1036var headers = new BlobAcquireLeaseHeaders(message.Response); 1037switch (message.Response.Status) 1040return ResponseWithHeaders.FromValue(headers, message.Response); 1042throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1105var headers = new BlobReleaseLeaseHeaders(message.Response); 1106switch (message.Response.Status) 1109return ResponseWithHeaders.FromValue(headers, message.Response); 1111throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1134var headers = new BlobReleaseLeaseHeaders(message.Response); 1135switch (message.Response.Status) 1138return ResponseWithHeaders.FromValue(headers, message.Response); 1140throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1203var headers = new BlobRenewLeaseHeaders(message.Response); 1204switch (message.Response.Status) 1207return ResponseWithHeaders.FromValue(headers, message.Response); 1209throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1232var headers = new BlobRenewLeaseHeaders(message.Response); 1233switch (message.Response.Status) 1236return ResponseWithHeaders.FromValue(headers, message.Response); 1238throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1307var headers = new BlobChangeLeaseHeaders(message.Response); 1308switch (message.Response.Status) 1311return ResponseWithHeaders.FromValue(headers, message.Response); 1313throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1341var headers = new BlobChangeLeaseHeaders(message.Response); 1342switch (message.Response.Status) 1345return ResponseWithHeaders.FromValue(headers, message.Response); 1347throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1407var headers = new BlobBreakLeaseHeaders(message.Response); 1408switch (message.Response.Status) 1411return ResponseWithHeaders.FromValue(headers, message.Response); 1413throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1430var headers = new BlobBreakLeaseHeaders(message.Response); 1431switch (message.Response.Status) 1434return ResponseWithHeaders.FromValue(headers, message.Response); 1436throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1520var headers = new BlobCreateSnapshotHeaders(message.Response); 1521switch (message.Response.Status) 1524return ResponseWithHeaders.FromValue(headers, message.Response); 1526throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1548var headers = new BlobCreateSnapshotHeaders(message.Response); 1549switch (message.Response.Status) 1552return ResponseWithHeaders.FromValue(headers, message.Response); 1554throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1685var headers = new BlobStartCopyFromURLHeaders(message.Response); 1686switch (message.Response.Status) 1689return ResponseWithHeaders.FromValue(headers, message.Response); 1691throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1728var headers = new BlobStartCopyFromURLHeaders(message.Response); 1729switch (message.Response.Status) 1732return ResponseWithHeaders.FromValue(headers, message.Response); 1734throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1866var headers = new BlobCopyFromURLHeaders(message.Response); 1867switch (message.Response.Status) 1870return ResponseWithHeaders.FromValue(headers, message.Response); 1872throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1909var headers = new BlobCopyFromURLHeaders(message.Response); 1910switch (message.Response.Status) 1913return ResponseWithHeaders.FromValue(headers, message.Response); 1915throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1958var headers = new BlobAbortCopyFromURLHeaders(message.Response); 1959switch (message.Response.Status) 1962return ResponseWithHeaders.FromValue(headers, message.Response); 1964throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1983var headers = new BlobAbortCopyFromURLHeaders(message.Response); 1984switch (message.Response.Status) 1987return ResponseWithHeaders.FromValue(headers, message.Response); 1989throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2045var headers = new BlobSetTierHeaders(message.Response); 2046switch (message.Response.Status) 2050return ResponseWithHeaders.FromValue(headers, message.Response); 2052throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2069var headers = new BlobSetTierHeaders(message.Response); 2070switch (message.Response.Status) 2074return ResponseWithHeaders.FromValue(headers, message.Response); 2076throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2164var headers = new BlobQueryHeaders(message.Response); 2165switch (message.Response.Status) 2171return ResponseWithHeaders.FromValue(value, headers, message.Response); 2174throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2196var headers = new BlobQueryHeaders(message.Response); 2197switch (message.Response.Status) 2203return ResponseWithHeaders.FromValue(value, headers, message.Response); 2206throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2255var headers = new BlobGetTagsHeaders(message.Response); 2256switch (message.Response.Status) 2261var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 2266return ResponseWithHeaders.FromValue(value, headers, message.Response); 2269throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2284var headers = new BlobGetTagsHeaders(message.Response); 2285switch (message.Response.Status) 2290var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 2295return ResponseWithHeaders.FromValue(value, headers, message.Response); 2298throw ClientDiagnostics.CreateRequestFailedException(message.Response); 2360var headers = new BlobSetTagsHeaders(message.Response); 2361switch (message.Response.Status) 2364return ResponseWithHeaders.FromValue(headers, message.Response); 2366throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 2383var headers = new BlobSetTagsHeaders(message.Response); 2384switch (message.Response.Status) 2387return ResponseWithHeaders.FromValue(headers, message.Response); 2389throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BlockBlobRestClient.cs (50)
194var headers = new BlockBlobUploadHeaders(message.Response); 195switch (message.Response.Status) 198return ResponseWithHeaders.FromValue(headers, message.Response); 200throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 242var headers = new BlockBlobUploadHeaders(message.Response); 243switch (message.Response.Status) 246return ResponseWithHeaders.FromValue(headers, message.Response); 248throw ClientDiagnostics.CreateRequestFailedException(message.Response); 422var headers = new BlockBlobPutBlobFromUrlHeaders(message.Response); 423switch (message.Response.Status) 426return ResponseWithHeaders.FromValue(headers, message.Response); 428throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 475var headers = new BlockBlobPutBlobFromUrlHeaders(message.Response); 476switch (message.Response.Status) 479return ResponseWithHeaders.FromValue(headers, message.Response); 481throw ClientDiagnostics.CreateRequestFailedException(message.Response); 562var headers = new BlockBlobStageBlockHeaders(message.Response); 563switch (message.Response.Status) 566return ResponseWithHeaders.FromValue(headers, message.Response); 568throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 599var headers = new BlockBlobStageBlockHeaders(message.Response); 600switch (message.Response.Status) 603return ResponseWithHeaders.FromValue(headers, message.Response); 605throw ClientDiagnostics.CreateRequestFailedException(message.Response); 714var headers = new BlockBlobStageBlockFromURLHeaders(message.Response); 715switch (message.Response.Status) 718return ResponseWithHeaders.FromValue(headers, message.Response); 720throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 757var headers = new BlockBlobStageBlockFromURLHeaders(message.Response); 758switch (message.Response.Status) 761return ResponseWithHeaders.FromValue(headers, message.Response); 763throw ClientDiagnostics.CreateRequestFailedException(message.Response); 923var headers = new BlockBlobCommitBlockListHeaders(message.Response); 924switch (message.Response.Status) 927return ResponseWithHeaders.FromValue(headers, message.Response); 929throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 971var headers = new BlockBlobCommitBlockListHeaders(message.Response); 972switch (message.Response.Status) 975return ResponseWithHeaders.FromValue(headers, message.Response); 977throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1023var headers = new BlockBlobGetBlockListHeaders(message.Response); 1024switch (message.Response.Status) 1029var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1034return ResponseWithHeaders.FromValue(value, headers, message.Response); 1037throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1052var headers = new BlockBlobGetBlockListHeaders(message.Response); 1053switch (message.Response.Status) 1058var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1063return ResponseWithHeaders.FromValue(value, headers, message.Response); 1066throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRestClient.cs (164)
88var headers = new ContainerCreateHeaders(message.Response); 89switch (message.Response.Status) 92return ResponseWithHeaders.FromValue(headers, message.Response); 94throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109var headers = new ContainerCreateHeaders(message.Response); 110switch (message.Response.Status) 113return ResponseWithHeaders.FromValue(headers, message.Response); 115throw ClientDiagnostics.CreateRequestFailedException(message.Response); 149var headers = new ContainerGetPropertiesHeaders(message.Response); 150switch (message.Response.Status) 153return ResponseWithHeaders.FromValue(headers, message.Response); 155throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 167var headers = new ContainerGetPropertiesHeaders(message.Response); 168switch (message.Response.Status) 171return ResponseWithHeaders.FromValue(headers, message.Response); 173throw ClientDiagnostics.CreateRequestFailedException(message.Response); 217var headers = new ContainerDeleteHeaders(message.Response); 218switch (message.Response.Status) 221return ResponseWithHeaders.FromValue(headers, message.Response); 223throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237var headers = new ContainerDeleteHeaders(message.Response); 238switch (message.Response.Status) 241return ResponseWithHeaders.FromValue(headers, message.Response); 243throw ClientDiagnostics.CreateRequestFailedException(message.Response); 288var headers = new ContainerSetMetadataHeaders(message.Response); 289switch (message.Response.Status) 292return ResponseWithHeaders.FromValue(headers, message.Response); 294throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 308var headers = new ContainerSetMetadataHeaders(message.Response); 309switch (message.Response.Status) 312return ResponseWithHeaders.FromValue(headers, message.Response); 314throw ClientDiagnostics.CreateRequestFailedException(message.Response); 349var headers = new ContainerGetAccessPolicyHeaders(message.Response); 350switch (message.Response.Status) 355var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 365return ResponseWithHeaders.FromValue(value, headers, message.Response); 368throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 380var headers = new ContainerGetAccessPolicyHeaders(message.Response); 381switch (message.Response.Status) 386var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 396return ResponseWithHeaders.FromValue(value, headers, message.Response); 399throw ClientDiagnostics.CreateRequestFailedException(message.Response); 462var headers = new ContainerSetAccessPolicyHeaders(message.Response); 463switch (message.Response.Status) 466return ResponseWithHeaders.FromValue(headers, message.Response); 468throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 484var headers = new ContainerSetAccessPolicyHeaders(message.Response); 485switch (message.Response.Status) 488return ResponseWithHeaders.FromValue(headers, message.Response); 490throw ClientDiagnostics.CreateRequestFailedException(message.Response); 530var headers = new ContainerRestoreHeaders(message.Response); 531switch (message.Response.Status) 534return ResponseWithHeaders.FromValue(headers, message.Response); 536throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 549var headers = new ContainerRestoreHeaders(message.Response); 550switch (message.Response.Status) 553return ResponseWithHeaders.FromValue(headers, message.Response); 555throw ClientDiagnostics.CreateRequestFailedException(message.Response); 598var headers = new ContainerRenameHeaders(message.Response); 599switch (message.Response.Status) 602return ResponseWithHeaders.FromValue(headers, message.Response); 604throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 623var headers = new ContainerRenameHeaders(message.Response); 624switch (message.Response.Status) 627return ResponseWithHeaders.FromValue(headers, message.Response); 629throw ClientDiagnostics.CreateRequestFailedException(message.Response); 675var headers = new ContainerSubmitBatchHeaders(message.Response); 676switch (message.Response.Status) 681return ResponseWithHeaders.FromValue(value, headers, message.Response); 684throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 708var headers = new ContainerSubmitBatchHeaders(message.Response); 709switch (message.Response.Status) 714return ResponseWithHeaders.FromValue(value, headers, message.Response); 717throw ClientDiagnostics.CreateRequestFailedException(message.Response); 762var headers = new ContainerFilterBlobsHeaders(message.Response); 763switch (message.Response.Status) 768var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 773return ResponseWithHeaders.FromValue(value, headers, message.Response); 776throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 790var headers = new ContainerFilterBlobsHeaders(message.Response); 791switch (message.Response.Status) 796var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 801return ResponseWithHeaders.FromValue(value, headers, message.Response); 804throw ClientDiagnostics.CreateRequestFailedException(message.Response); 855var headers = new ContainerAcquireLeaseHeaders(message.Response); 856switch (message.Response.Status) 859return ResponseWithHeaders.FromValue(headers, message.Response); 861throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 876var headers = new ContainerAcquireLeaseHeaders(message.Response); 877switch (message.Response.Status) 880return ResponseWithHeaders.FromValue(headers, message.Response); 882throw ClientDiagnostics.CreateRequestFailedException(message.Response); 931var headers = new ContainerReleaseLeaseHeaders(message.Response); 932switch (message.Response.Status) 935return ResponseWithHeaders.FromValue(headers, message.Response); 937throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 957var headers = new ContainerReleaseLeaseHeaders(message.Response); 958switch (message.Response.Status) 961return ResponseWithHeaders.FromValue(headers, message.Response); 963throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1012var headers = new ContainerRenewLeaseHeaders(message.Response); 1013switch (message.Response.Status) 1016return ResponseWithHeaders.FromValue(headers, message.Response); 1018throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1038var headers = new ContainerRenewLeaseHeaders(message.Response); 1039switch (message.Response.Status) 1042return ResponseWithHeaders.FromValue(headers, message.Response); 1044throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1090var headers = new ContainerBreakLeaseHeaders(message.Response); 1091switch (message.Response.Status) 1094return ResponseWithHeaders.FromValue(headers, message.Response); 1096throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1110var headers = new ContainerBreakLeaseHeaders(message.Response); 1111switch (message.Response.Status) 1114return ResponseWithHeaders.FromValue(headers, message.Response); 1116throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1171var headers = new ContainerChangeLeaseHeaders(message.Response); 1172switch (message.Response.Status) 1175return ResponseWithHeaders.FromValue(headers, message.Response); 1177throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1202var headers = new ContainerChangeLeaseHeaders(message.Response); 1203switch (message.Response.Status) 1206return ResponseWithHeaders.FromValue(headers, message.Response); 1208throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1258var headers = new ContainerListBlobFlatSegmentHeaders(message.Response); 1259switch (message.Response.Status) 1264var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1269return ResponseWithHeaders.FromValue(value, headers, message.Response); 1272throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1287var headers = new ContainerListBlobFlatSegmentHeaders(message.Response); 1288switch (message.Response.Status) 1293var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1298return ResponseWithHeaders.FromValue(value, headers, message.Response); 1301throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1356var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response); 1357switch (message.Response.Status) 1362var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1367return ResponseWithHeaders.FromValue(value, headers, message.Response); 1370throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1386var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response); 1387switch (message.Response.Status) 1392var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1397return ResponseWithHeaders.FromValue(value, headers, message.Response); 1400throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1436var headers = new ContainerListBlobFlatSegmentHeaders(message.Response); 1437switch (message.Response.Status) 1442var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1447return ResponseWithHeaders.FromValue(value, headers, message.Response); 1450throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1472var headers = new ContainerListBlobFlatSegmentHeaders(message.Response); 1473switch (message.Response.Status) 1478var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1483return ResponseWithHeaders.FromValue(value, headers, message.Response); 1486throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1523var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response); 1524switch (message.Response.Status) 1529var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1534return ResponseWithHeaders.FromValue(value, headers, message.Response); 1537throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1560var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response); 1561switch (message.Response.Status) 1566var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1571return ResponseWithHeaders.FromValue(value, headers, message.Response); 1574throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PageBlobRestClient.cs (76)
186var headers = new PageBlobCreateHeaders(message.Response); 187switch (message.Response.Status) 190return ResponseWithHeaders.FromValue(headers, message.Response); 192throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 228var headers = new PageBlobCreateHeaders(message.Response); 229switch (message.Response.Status) 232return ResponseWithHeaders.FromValue(headers, message.Response); 234throw ClientDiagnostics.CreateRequestFailedException(message.Response); 355var headers = new PageBlobUploadPagesHeaders(message.Response); 356switch (message.Response.Status) 359return ResponseWithHeaders.FromValue(headers, message.Response); 361throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 396var headers = new PageBlobUploadPagesHeaders(message.Response); 397switch (message.Response.Status) 400return ResponseWithHeaders.FromValue(headers, message.Response); 402throw ClientDiagnostics.CreateRequestFailedException(message.Response); 503var headers = new PageBlobClearPagesHeaders(message.Response); 504switch (message.Response.Status) 507return ResponseWithHeaders.FromValue(headers, message.Response); 509throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 535var headers = new PageBlobClearPagesHeaders(message.Response); 536switch (message.Response.Status) 539return ResponseWithHeaders.FromValue(headers, message.Response); 541throw ClientDiagnostics.CreateRequestFailedException(message.Response); 692var headers = new PageBlobUploadPagesFromURLHeaders(message.Response); 693switch (message.Response.Status) 696return ResponseWithHeaders.FromValue(headers, message.Response); 698throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 747var headers = new PageBlobUploadPagesFromURLHeaders(message.Response); 748switch (message.Response.Status) 751return ResponseWithHeaders.FromValue(headers, message.Response); 753throw ClientDiagnostics.CreateRequestFailedException(message.Response); 822var headers = new PageBlobGetPageRangesHeaders(message.Response); 823switch (message.Response.Status) 828var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 833return ResponseWithHeaders.FromValue(value, headers, message.Response); 836throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 855var headers = new PageBlobGetPageRangesHeaders(message.Response); 856switch (message.Response.Status) 861var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 866return ResponseWithHeaders.FromValue(value, headers, message.Response); 869throw ClientDiagnostics.CreateRequestFailedException(message.Response); 948var headers = new PageBlobGetPageRangesDiffHeaders(message.Response); 949switch (message.Response.Status) 954var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 959return ResponseWithHeaders.FromValue(value, headers, message.Response); 962throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 983var headers = new PageBlobGetPageRangesDiffHeaders(message.Response); 984switch (message.Response.Status) 989var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 994return ResponseWithHeaders.FromValue(value, headers, message.Response); 997throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1078var headers = new PageBlobResizeHeaders(message.Response); 1079switch (message.Response.Status) 1082return ResponseWithHeaders.FromValue(headers, message.Response); 1084throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1106var headers = new PageBlobResizeHeaders(message.Response); 1107switch (message.Response.Status) 1110return ResponseWithHeaders.FromValue(headers, message.Response); 1112throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1178var headers = new PageBlobUpdateSequenceNumberHeaders(message.Response); 1179switch (message.Response.Status) 1182return ResponseWithHeaders.FromValue(headers, message.Response); 1184throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1203var headers = new PageBlobUpdateSequenceNumberHeaders(message.Response); 1204switch (message.Response.Status) 1207return ResponseWithHeaders.FromValue(headers, message.Response); 1209throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1271var headers = new PageBlobCopyIncrementalHeaders(message.Response); 1272switch (message.Response.Status) 1275return ResponseWithHeaders.FromValue(headers, message.Response); 1277throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1300var headers = new PageBlobCopyIncrementalHeaders(message.Response); 1301switch (message.Response.Status) 1304return ResponseWithHeaders.FromValue(headers, message.Response); 1306throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (84)
81var headers = new ServiceSetPropertiesHeaders(message.Response); 82switch (message.Response.Status) 85return ResponseWithHeaders.FromValue(headers, message.Response); 87throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 105var headers = new ServiceSetPropertiesHeaders(message.Response); 106switch (message.Response.Status) 109return ResponseWithHeaders.FromValue(headers, message.Response); 111throw ClientDiagnostics.CreateRequestFailedException(message.Response); 142var headers = new ServiceGetPropertiesHeaders(message.Response); 143switch (message.Response.Status) 148var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 153return ResponseWithHeaders.FromValue(value, headers, message.Response); 156throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 167var headers = new ServiceGetPropertiesHeaders(message.Response); 168switch (message.Response.Status) 173var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 178return ResponseWithHeaders.FromValue(value, headers, message.Response); 181throw ClientDiagnostics.CreateRequestFailedException(message.Response); 212var headers = new ServiceGetStatisticsHeaders(message.Response); 213switch (message.Response.Status) 218var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 223return ResponseWithHeaders.FromValue(value, headers, message.Response); 226throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 237var headers = new ServiceGetStatisticsHeaders(message.Response); 238switch (message.Response.Status) 243var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 248return ResponseWithHeaders.FromValue(value, headers, message.Response); 251throw ClientDiagnostics.CreateRequestFailedException(message.Response); 301var headers = new ServiceListContainersSegmentHeaders(message.Response); 302switch (message.Response.Status) 307var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 312return ResponseWithHeaders.FromValue(value, headers, message.Response); 315throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 330var headers = new ServiceListContainersSegmentHeaders(message.Response); 331switch (message.Response.Status) 336var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 341return ResponseWithHeaders.FromValue(value, headers, message.Response); 344throw ClientDiagnostics.CreateRequestFailedException(message.Response); 386var headers = new ServiceGetUserDelegationKeyHeaders(message.Response); 387switch (message.Response.Status) 392var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 397return ResponseWithHeaders.FromValue(value, headers, message.Response); 400throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 418var headers = new ServiceGetUserDelegationKeyHeaders(message.Response); 419switch (message.Response.Status) 424var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 429return ResponseWithHeaders.FromValue(value, headers, message.Response); 432throw ClientDiagnostics.CreateRequestFailedException(message.Response); 458var headers = new ServiceGetAccountInfoHeaders(message.Response); 459switch (message.Response.Status) 462return ResponseWithHeaders.FromValue(headers, message.Response); 464throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 474var headers = new ServiceGetAccountInfoHeaders(message.Response); 475switch (message.Response.Status) 478return ResponseWithHeaders.FromValue(headers, message.Response); 480throw ClientDiagnostics.CreateRequestFailedException(message.Response); 526var headers = new ServiceSubmitBatchHeaders(message.Response); 527switch (message.Response.Status) 532return ResponseWithHeaders.FromValue(value, headers, message.Response); 535throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 559var headers = new ServiceSubmitBatchHeaders(message.Response); 560switch (message.Response.Status) 565return ResponseWithHeaders.FromValue(value, headers, message.Response); 568throw ClientDiagnostics.CreateRequestFailedException(message.Response); 613var headers = new ServiceFilterBlobsHeaders(message.Response); 614switch (message.Response.Status) 619var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 624return ResponseWithHeaders.FromValue(value, headers, message.Response); 627throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 641var headers = new ServiceFilterBlobsHeaders(message.Response); 642switch (message.Response.Status) 647var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 652return ResponseWithHeaders.FromValue(value, headers, message.Response); 655throw ClientDiagnostics.CreateRequestFailedException(message.Response); 691var headers = new ServiceListContainersSegmentHeaders(message.Response); 692switch (message.Response.Status) 697var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 702return ResponseWithHeaders.FromValue(value, headers, message.Response); 705throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 727var headers = new ServiceListContainersSegmentHeaders(message.Response); 728switch (message.Response.Status) 733var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 738return ResponseWithHeaders.FromValue(value, headers, message.Response); 741throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (2)
85var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri"); 90string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource_id");
Shared\StorageRequestValidationPipelinePolicy.cs (2)
36message.Response.Headers.TryGetValues(Constants.HeaderNames.ClientRequestId, out var echo) && 39throw Errors.ClientRequestIdMismatch(_clientDiagnostics, message.Response, echo.First(), original);
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Blobs.Batch (39)
Generated\BlobRestClient.cs (16)
112var headers = new BlobSetAccessTierHeaders(message.Response); 113switch (message.Response.Status) 117return ResponseWithHeaders.FromValue(headers, message.Response); 119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 146var headers = new BlobSetAccessTierHeaders(message.Response); 147switch (message.Response.Status) 151return ResponseWithHeaders.FromValue(headers, message.Response); 153throw ClientDiagnostics.CreateRequestFailedException(message.Response); 245var headers = new BlobDeleteHeaders(message.Response); 246switch (message.Response.Status) 249return ResponseWithHeaders.FromValue(headers, message.Response); 251throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 282var headers = new BlobDeleteHeaders(message.Response); 283switch (message.Response.Status) 286return ResponseWithHeaders.FromValue(headers, message.Response); 288throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRestClient.cs (8)
65var headers = new ContainerSubmitBatchHeaders(message.Response); 66switch (message.Response.Status) 71return ResponseWithHeaders.FromValue(value, headers, message.Response); 74throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 103var headers = new ContainerSubmitBatchHeaders(message.Response); 104switch (message.Response.Status) 109return ResponseWithHeaders.FromValue(value, headers, message.Response); 112throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (8)
60var headers = new ServiceSubmitBatchHeaders(message.Response); 61switch (message.Response.Status) 66return ResponseWithHeaders.FromValue(value, headers, message.Response); 69throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 93var headers = new ServiceSubmitBatchHeaders(message.Response); 94switch (message.Response.Status) 99return ResponseWithHeaders.FromValue(value, headers, message.Response); 102throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Storage.Blobs.Batch.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.Batch.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.ChangeFeed.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.ChangeFeed.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.Perf (2)
Scenarios\DownloadSasUriHttpPipeline.cs (2)
29message.Response.ContentStream.CopyTo(Stream.Null, BufferSize); 36await message.Response.ContentStream.CopyToAsync(Stream.Null, BufferSize, cancellationToken);
Azure.Storage.Blobs.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Blobs.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Common (7)
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (2)
85var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri"); 90string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource_id");
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Common.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Common.Tests (18)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Files.DataLake (190)
Generated\FileSystemRestClient.cs (62)
76var headers = new FileSystemCreateHeaders(message.Response); 77switch (message.Response.Status) 80return ResponseWithHeaders.FromValue(headers, message.Response); 82throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 94var headers = new FileSystemCreateHeaders(message.Response); 95switch (message.Response.Status) 98return ResponseWithHeaders.FromValue(headers, message.Response); 100throw ClientDiagnostics.CreateRequestFailedException(message.Response); 144var headers = new FileSystemSetPropertiesHeaders(message.Response); 145switch (message.Response.Status) 148return ResponseWithHeaders.FromValue(headers, message.Response); 150throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 164var headers = new FileSystemSetPropertiesHeaders(message.Response); 165switch (message.Response.Status) 168return ResponseWithHeaders.FromValue(headers, message.Response); 170throw ClientDiagnostics.CreateRequestFailedException(message.Response); 199var headers = new FileSystemGetPropertiesHeaders(message.Response); 200switch (message.Response.Status) 203return ResponseWithHeaders.FromValue(headers, message.Response); 205throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 216var headers = new FileSystemGetPropertiesHeaders(message.Response); 217switch (message.Response.Status) 220return ResponseWithHeaders.FromValue(headers, message.Response); 222throw ClientDiagnostics.CreateRequestFailedException(message.Response); 261var headers = new FileSystemDeleteHeaders(message.Response); 262switch (message.Response.Status) 265return ResponseWithHeaders.FromValue(headers, message.Response); 267throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 280var headers = new FileSystemDeleteHeaders(message.Response); 281switch (message.Response.Status) 284return ResponseWithHeaders.FromValue(headers, message.Response); 286throw ClientDiagnostics.CreateRequestFailedException(message.Response); 337var headers = new FileSystemListPathsHeaders(message.Response); 338switch (message.Response.Status) 343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 345return ResponseWithHeaders.FromValue(value, headers, message.Response); 348throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 364var headers = new FileSystemListPathsHeaders(message.Response); 365switch (message.Response.Status) 370using var document = JsonDocument.Parse(message.Response.ContentStream); 372return ResponseWithHeaders.FromValue(value, headers, message.Response); 375throw ClientDiagnostics.CreateRequestFailedException(message.Response); 431var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response); 432switch (message.Response.Status) 437var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 442return ResponseWithHeaders.FromValue(value, headers, message.Response); 445throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 461var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response); 462switch (message.Response.Status) 467var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 472return ResponseWithHeaders.FromValue(value, headers, message.Response); 475throw ClientDiagnostics.CreateRequestFailedException(message.Response); 512var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response); 513switch (message.Response.Status) 518var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 523return ResponseWithHeaders.FromValue(value, headers, message.Response); 526throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 549var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response); 550switch (message.Response.Status) 555var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 560return ResponseWithHeaders.FromValue(value, headers, message.Response); 563throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PathRestClient.cs (102)
176var headers = new PathCreateHeaders(message.Response); 177switch (message.Response.Status) 180return ResponseWithHeaders.FromValue(headers, message.Response); 182throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 215var headers = new PathCreateHeaders(message.Response); 216switch (message.Response.Status) 219return ResponseWithHeaders.FromValue(headers, message.Response); 221throw ClientDiagnostics.CreateRequestFailedException(message.Response); 377var headers = new PathUpdateHeaders(message.Response); 378switch (message.Response.Status) 383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 385return ResponseWithHeaders.FromValue(value, headers, message.Response); 388return ResponseWithHeaders.FromValue((SetAccessControlRecursiveResponse)null, headers, message.Response); 390throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 433var headers = new PathUpdateHeaders(message.Response); 434switch (message.Response.Status) 439using var document = JsonDocument.Parse(message.Response.ContentStream); 441return ResponseWithHeaders.FromValue(value, headers, message.Response); 444return ResponseWithHeaders.FromValue((SetAccessControlRecursiveResponse)null, headers, message.Response); 446throw ClientDiagnostics.CreateRequestFailedException(message.Response); 516var headers = new PathLeaseHeaders(message.Response); 517switch (message.Response.Status) 522return ResponseWithHeaders.FromValue(headers, message.Response); 524throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 544var headers = new PathLeaseHeaders(message.Response); 545switch (message.Response.Status) 550return ResponseWithHeaders.FromValue(headers, message.Response); 552throw ClientDiagnostics.CreateRequestFailedException(message.Response); 616var headers = new PathReadHeaders(message.Response); 617switch (message.Response.Status) 623return ResponseWithHeaders.FromValue(value, headers, message.Response); 626throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644var headers = new PathReadHeaders(message.Response); 645switch (message.Response.Status) 651return ResponseWithHeaders.FromValue(value, headers, message.Response); 654throw ClientDiagnostics.CreateRequestFailedException(message.Response); 717var headers = new PathGetPropertiesHeaders(message.Response); 718switch (message.Response.Status) 721return ResponseWithHeaders.FromValue(headers, message.Response); 723throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 741var headers = new PathGetPropertiesHeaders(message.Response); 742switch (message.Response.Status) 745return ResponseWithHeaders.FromValue(headers, message.Response); 747throw ClientDiagnostics.CreateRequestFailedException(message.Response); 810var headers = new PathDeleteHeaders(message.Response); 811switch (message.Response.Status) 814return ResponseWithHeaders.FromValue(headers, message.Response); 816throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 834var headers = new PathDeleteHeaders(message.Response); 835switch (message.Response.Status) 838return ResponseWithHeaders.FromValue(headers, message.Response); 840throw ClientDiagnostics.CreateRequestFailedException(message.Response); 914var headers = new PathSetAccessControlHeaders(message.Response); 915switch (message.Response.Status) 918return ResponseWithHeaders.FromValue(headers, message.Response); 920throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 940var headers = new PathSetAccessControlHeaders(message.Response); 941switch (message.Response.Status) 944return ResponseWithHeaders.FromValue(headers, message.Response); 946throw ClientDiagnostics.CreateRequestFailedException(message.Response); 997var headers = new PathSetAccessControlRecursiveHeaders(message.Response); 998switch (message.Response.Status) 1003using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 1005return ResponseWithHeaders.FromValue(value, headers, message.Response); 1008throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1024var headers = new PathSetAccessControlRecursiveHeaders(message.Response); 1025switch (message.Response.Status) 1030using var document = JsonDocument.Parse(message.Response.ContentStream); 1032return ResponseWithHeaders.FromValue(value, headers, message.Response); 1035throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1135var headers = new PathFlushDataHeaders(message.Response); 1136switch (message.Response.Status) 1139return ResponseWithHeaders.FromValue(headers, message.Response); 1141throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1167var headers = new PathFlushDataHeaders(message.Response); 1168switch (message.Response.Status) 1171return ResponseWithHeaders.FromValue(headers, message.Response); 1173throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1236var headers = new PathAppendDataHeaders(message.Response); 1237switch (message.Response.Status) 1240return ResponseWithHeaders.FromValue(headers, message.Response); 1242throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1265var headers = new PathAppendDataHeaders(message.Response); 1266switch (message.Response.Status) 1269return ResponseWithHeaders.FromValue(headers, message.Response); 1271throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1307var headers = new PathSetExpiryHeaders(message.Response); 1308switch (message.Response.Status) 1311return ResponseWithHeaders.FromValue(headers, message.Response); 1313throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1326var headers = new PathSetExpiryHeaders(message.Response); 1327switch (message.Response.Status) 1330return ResponseWithHeaders.FromValue(headers, message.Response); 1332throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1366var headers = new PathUndeleteHeaders(message.Response); 1367switch (message.Response.Status) 1370return ResponseWithHeaders.FromValue(headers, message.Response); 1372throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1384var headers = new PathUndeleteHeaders(message.Response); 1385switch (message.Response.Status) 1388return ResponseWithHeaders.FromValue(headers, message.Response); 1390throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (10)
82var headers = new ServiceListFileSystemsHeaders(message.Response); 83switch (message.Response.Status) 88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 90return ResponseWithHeaders.FromValue(value, headers, message.Response); 93throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 107var headers = new ServiceListFileSystemsHeaders(message.Response); 108switch (message.Response.Status) 113using var document = JsonDocument.Parse(message.Response.ContentStream); 115return ResponseWithHeaders.FromValue(value, headers, message.Response); 118throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (2)
85var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri"); 90string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource_id");
Shared\StorageRequestValidationPipelinePolicy.cs (2)
36message.Response.Headers.TryGetValues(Constants.HeaderNames.ClientRequestId, out var echo) && 39throw Errors.ClientRequestIdMismatch(_clientDiagnostics, message.Response, echo.First(), original);
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Files.DataLake.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Files.DataLake.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Files.Shares (430)
Generated\DirectoryRestClient.cs (86)
102var headers = new DirectoryCreateHeaders(message.Response); 103switch (message.Response.Status) 106return ResponseWithHeaders.FromValue(headers, message.Response); 108throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 139var headers = new DirectoryCreateHeaders(message.Response); 140switch (message.Response.Status) 143return ResponseWithHeaders.FromValue(headers, message.Response); 145throw ClientDiagnostics.CreateRequestFailedException(message.Response); 179var headers = new DirectoryGetPropertiesHeaders(message.Response); 180switch (message.Response.Status) 183return ResponseWithHeaders.FromValue(headers, message.Response); 185throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 197var headers = new DirectoryGetPropertiesHeaders(message.Response); 198switch (message.Response.Status) 201return ResponseWithHeaders.FromValue(headers, message.Response); 203throw ClientDiagnostics.CreateRequestFailedException(message.Response); 232var headers = new DirectoryDeleteHeaders(message.Response); 233switch (message.Response.Status) 236return ResponseWithHeaders.FromValue(headers, message.Response); 238throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 249var headers = new DirectoryDeleteHeaders(message.Response); 250switch (message.Response.Status) 253return ResponseWithHeaders.FromValue(headers, message.Response); 255throw ClientDiagnostics.CreateRequestFailedException(message.Response); 315var headers = new DirectorySetPropertiesHeaders(message.Response); 316switch (message.Response.Status) 319return ResponseWithHeaders.FromValue(headers, message.Response); 321throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 351var headers = new DirectorySetPropertiesHeaders(message.Response); 352switch (message.Response.Status) 355return ResponseWithHeaders.FromValue(headers, message.Response); 357throw ClientDiagnostics.CreateRequestFailedException(message.Response); 392var headers = new DirectorySetMetadataHeaders(message.Response); 393switch (message.Response.Status) 396return ResponseWithHeaders.FromValue(headers, message.Response); 398throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 410var headers = new DirectorySetMetadataHeaders(message.Response); 411switch (message.Response.Status) 414return ResponseWithHeaders.FromValue(headers, message.Response); 416throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response); 477switch (message.Response.Status) 482var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 487return ResponseWithHeaders.FromValue(value, headers, message.Response); 490throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 507var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response); 508switch (message.Response.Status) 513var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 518return ResponseWithHeaders.FromValue(value, headers, message.Response); 521throw ClientDiagnostics.CreateRequestFailedException(message.Response); 570var headers = new DirectoryListHandlesHeaders(message.Response); 571switch (message.Response.Status) 576var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 581return ResponseWithHeaders.FromValue(value, headers, message.Response); 584throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 599var headers = new DirectoryListHandlesHeaders(message.Response); 600switch (message.Response.Status) 605var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 610return ResponseWithHeaders.FromValue(value, headers, message.Response); 613throw ClientDiagnostics.CreateRequestFailedException(message.Response); 665var headers = new DirectoryForceCloseHandlesHeaders(message.Response); 666switch (message.Response.Status) 669return ResponseWithHeaders.FromValue(headers, message.Response); 671throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 692var headers = new DirectoryForceCloseHandlesHeaders(message.Response); 693switch (message.Response.Status) 696return ResponseWithHeaders.FromValue(headers, message.Response); 698throw ClientDiagnostics.CreateRequestFailedException(message.Response); 784var headers = new DirectoryRenameHeaders(message.Response); 785switch (message.Response.Status) 788return ResponseWithHeaders.FromValue(headers, message.Response); 790throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 816var headers = new DirectoryRenameHeaders(message.Response); 817switch (message.Response.Status) 820return ResponseWithHeaders.FromValue(headers, message.Response); 822throw ClientDiagnostics.CreateRequestFailedException(message.Response); 864var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response); 865switch (message.Response.Status) 870var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 875return ResponseWithHeaders.FromValue(value, headers, message.Response); 878throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 902var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response); 903switch (message.Response.Status) 908var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 913return ResponseWithHeaders.FromValue(value, headers, message.Response); 916throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FileRestClient.cs (148)
138var headers = new FileCreateHeaders(message.Response); 139switch (message.Response.Status) 142return ResponseWithHeaders.FromValue(headers, message.Response); 144throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 178var headers = new FileCreateHeaders(message.Response); 179switch (message.Response.Status) 182return ResponseWithHeaders.FromValue(headers, message.Response); 184throw ClientDiagnostics.CreateRequestFailedException(message.Response); 228var headers = new FileDownloadHeaders(message.Response); 229switch (message.Response.Status) 235return ResponseWithHeaders.FromValue(value, headers, message.Response); 238throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252var headers = new FileDownloadHeaders(message.Response); 253switch (message.Response.Status) 259return ResponseWithHeaders.FromValue(value, headers, message.Response); 262throw ClientDiagnostics.CreateRequestFailedException(message.Response); 300var headers = new FileGetPropertiesHeaders(message.Response); 301switch (message.Response.Status) 304return ResponseWithHeaders.FromValue(headers, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 319var headers = new FileGetPropertiesHeaders(message.Response); 320switch (message.Response.Status) 323return ResponseWithHeaders.FromValue(headers, message.Response); 325throw ClientDiagnostics.CreateRequestFailedException(message.Response); 358var headers = new FileDeleteHeaders(message.Response); 359switch (message.Response.Status) 362return ResponseWithHeaders.FromValue(headers, message.Response); 364throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 376var headers = new FileDeleteHeaders(message.Response); 377switch (message.Response.Status) 380return ResponseWithHeaders.FromValue(headers, message.Response); 382throw ClientDiagnostics.CreateRequestFailedException(message.Response); 476var headers = new FileSetHttpHeadersHeaders(message.Response); 477switch (message.Response.Status) 480return ResponseWithHeaders.FromValue(headers, message.Response); 482throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 515var headers = new FileSetHttpHeadersHeaders(message.Response); 516switch (message.Response.Status) 519return ResponseWithHeaders.FromValue(headers, message.Response); 521throw ClientDiagnostics.CreateRequestFailedException(message.Response); 560var headers = new FileSetMetadataHeaders(message.Response); 561switch (message.Response.Status) 564return ResponseWithHeaders.FromValue(headers, message.Response); 566throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 579var headers = new FileSetMetadataHeaders(message.Response); 580switch (message.Response.Status) 583return ResponseWithHeaders.FromValue(headers, message.Response); 585throw ClientDiagnostics.CreateRequestFailedException(message.Response); 625var headers = new FileAcquireLeaseHeaders(message.Response); 626switch (message.Response.Status) 629return ResponseWithHeaders.FromValue(headers, message.Response); 631throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 644var headers = new FileAcquireLeaseHeaders(message.Response); 645switch (message.Response.Status) 648return ResponseWithHeaders.FromValue(headers, message.Response); 650throw ClientDiagnostics.CreateRequestFailedException(message.Response); 688var headers = new FileReleaseLeaseHeaders(message.Response); 689switch (message.Response.Status) 692return ResponseWithHeaders.FromValue(headers, message.Response); 694throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 712var headers = new FileReleaseLeaseHeaders(message.Response); 713switch (message.Response.Status) 716return ResponseWithHeaders.FromValue(headers, message.Response); 718throw ClientDiagnostics.CreateRequestFailedException(message.Response); 761var headers = new FileChangeLeaseHeaders(message.Response); 762switch (message.Response.Status) 765return ResponseWithHeaders.FromValue(headers, message.Response); 767throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 786var headers = new FileChangeLeaseHeaders(message.Response); 787switch (message.Response.Status) 790return ResponseWithHeaders.FromValue(headers, message.Response); 792throw ClientDiagnostics.CreateRequestFailedException(message.Response); 827var headers = new FileBreakLeaseHeaders(message.Response); 828switch (message.Response.Status) 831return ResponseWithHeaders.FromValue(headers, message.Response); 833throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 845var headers = new FileBreakLeaseHeaders(message.Response); 846switch (message.Response.Status) 849return ResponseWithHeaders.FromValue(headers, message.Response); 851throw ClientDiagnostics.CreateRequestFailedException(message.Response); 908var headers = new FileUploadRangeHeaders(message.Response); 909switch (message.Response.Status) 912return ResponseWithHeaders.FromValue(headers, message.Response); 914throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 937var headers = new FileUploadRangeHeaders(message.Response); 938switch (message.Response.Status) 941return ResponseWithHeaders.FromValue(headers, message.Response); 943throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1017var headers = new FileUploadRangeFromURLHeaders(message.Response); 1018switch (message.Response.Status) 1021return ResponseWithHeaders.FromValue(headers, message.Response); 1023throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1052var headers = new FileUploadRangeFromURLHeaders(message.Response); 1053switch (message.Response.Status) 1056return ResponseWithHeaders.FromValue(headers, message.Response); 1058throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1107var headers = new FileGetRangeListHeaders(message.Response); 1108switch (message.Response.Status) 1113var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1118return ResponseWithHeaders.FromValue(value, headers, message.Response); 1121throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1136var headers = new FileGetRangeListHeaders(message.Response); 1137switch (message.Response.Status) 1142var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1147return ResponseWithHeaders.FromValue(value, headers, message.Response); 1150throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1231var headers = new FileStartCopyHeaders(message.Response); 1232switch (message.Response.Status) 1235return ResponseWithHeaders.FromValue(headers, message.Response); 1237throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1260var headers = new FileStartCopyHeaders(message.Response); 1261switch (message.Response.Status) 1264return ResponseWithHeaders.FromValue(headers, message.Response); 1266throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1309var headers = new FileAbortCopyHeaders(message.Response); 1310switch (message.Response.Status) 1313return ResponseWithHeaders.FromValue(headers, message.Response); 1315throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1334var headers = new FileAbortCopyHeaders(message.Response); 1335switch (message.Response.Status) 1338return ResponseWithHeaders.FromValue(headers, message.Response); 1340throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1384var headers = new FileListHandlesHeaders(message.Response); 1385switch (message.Response.Status) 1390var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1395return ResponseWithHeaders.FromValue(value, headers, message.Response); 1398throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1412var headers = new FileListHandlesHeaders(message.Response); 1413switch (message.Response.Status) 1418var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1423return ResponseWithHeaders.FromValue(value, headers, message.Response); 1426throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1473var headers = new FileForceCloseHandlesHeaders(message.Response); 1474switch (message.Response.Status) 1477return ResponseWithHeaders.FromValue(headers, message.Response); 1479throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1499var headers = new FileForceCloseHandlesHeaders(message.Response); 1500switch (message.Response.Status) 1503return ResponseWithHeaders.FromValue(headers, message.Response); 1505throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1590var headers = new FileRenameHeaders(message.Response); 1591switch (message.Response.Status) 1594return ResponseWithHeaders.FromValue(headers, message.Response); 1596throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1622var headers = new FileRenameHeaders(message.Response); 1623switch (message.Response.Status) 1626return ResponseWithHeaders.FromValue(headers, message.Response); 1628throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (38)
80var headers = new ServiceSetPropertiesHeaders(message.Response); 81switch (message.Response.Status) 84return ResponseWithHeaders.FromValue(headers, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 104var headers = new ServiceSetPropertiesHeaders(message.Response); 105switch (message.Response.Status) 108return ResponseWithHeaders.FromValue(headers, message.Response); 110throw ClientDiagnostics.CreateRequestFailedException(message.Response); 141var headers = new ServiceGetPropertiesHeaders(message.Response); 142switch (message.Response.Status) 147var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 152return ResponseWithHeaders.FromValue(value, headers, message.Response); 155throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166var headers = new ServiceGetPropertiesHeaders(message.Response); 167switch (message.Response.Status) 172var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 177return ResponseWithHeaders.FromValue(value, headers, message.Response); 180throw ClientDiagnostics.CreateRequestFailedException(message.Response); 230var headers = new ServiceListSharesSegmentHeaders(message.Response); 231switch (message.Response.Status) 236var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 241return ResponseWithHeaders.FromValue(value, headers, message.Response); 244throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 259var headers = new ServiceListSharesSegmentHeaders(message.Response); 260switch (message.Response.Status) 265var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 270return ResponseWithHeaders.FromValue(value, headers, message.Response); 273throw ClientDiagnostics.CreateRequestFailedException(message.Response); 309var headers = new ServiceListSharesSegmentHeaders(message.Response); 310switch (message.Response.Status) 315var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 320return ResponseWithHeaders.FromValue(value, headers, message.Response); 323throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 345var headers = new ServiceListSharesSegmentHeaders(message.Response); 346switch (message.Response.Status) 351var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 356return ResponseWithHeaders.FromValue(value, headers, message.Response); 359throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ShareRestClient.cs (142)
93var headers = new ShareCreateHeaders(message.Response); 94switch (message.Response.Status) 97return ResponseWithHeaders.FromValue(headers, message.Response); 99throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 115var headers = new ShareCreateHeaders(message.Response); 116switch (message.Response.Status) 119return ResponseWithHeaders.FromValue(headers, message.Response); 121throw ClientDiagnostics.CreateRequestFailedException(message.Response); 160var headers = new ShareGetPropertiesHeaders(message.Response); 161switch (message.Response.Status) 164return ResponseWithHeaders.FromValue(headers, message.Response); 166throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 179var headers = new ShareGetPropertiesHeaders(message.Response); 180switch (message.Response.Status) 183return ResponseWithHeaders.FromValue(headers, message.Response); 185throw ClientDiagnostics.CreateRequestFailedException(message.Response); 229var headers = new ShareDeleteHeaders(message.Response); 230switch (message.Response.Status) 233return ResponseWithHeaders.FromValue(headers, message.Response); 235throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 249var headers = new ShareDeleteHeaders(message.Response); 250switch (message.Response.Status) 253return ResponseWithHeaders.FromValue(headers, message.Response); 255throw ClientDiagnostics.CreateRequestFailedException(message.Response); 301var headers = new ShareAcquireLeaseHeaders(message.Response); 302switch (message.Response.Status) 305return ResponseWithHeaders.FromValue(headers, message.Response); 307throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 321var headers = new ShareAcquireLeaseHeaders(message.Response); 322switch (message.Response.Status) 325return ResponseWithHeaders.FromValue(headers, message.Response); 327throw ClientDiagnostics.CreateRequestFailedException(message.Response); 371var headers = new ShareReleaseLeaseHeaders(message.Response); 372switch (message.Response.Status) 375return ResponseWithHeaders.FromValue(headers, message.Response); 377throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 396var headers = new ShareReleaseLeaseHeaders(message.Response); 397switch (message.Response.Status) 400return ResponseWithHeaders.FromValue(headers, message.Response); 402throw ClientDiagnostics.CreateRequestFailedException(message.Response); 451var headers = new ShareChangeLeaseHeaders(message.Response); 452switch (message.Response.Status) 455return ResponseWithHeaders.FromValue(headers, message.Response); 457throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 477var headers = new ShareChangeLeaseHeaders(message.Response); 478switch (message.Response.Status) 481return ResponseWithHeaders.FromValue(headers, message.Response); 483throw ClientDiagnostics.CreateRequestFailedException(message.Response); 527var headers = new ShareRenewLeaseHeaders(message.Response); 528switch (message.Response.Status) 531return ResponseWithHeaders.FromValue(headers, message.Response); 533throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 552var headers = new ShareRenewLeaseHeaders(message.Response); 553switch (message.Response.Status) 556return ResponseWithHeaders.FromValue(headers, message.Response); 558throw ClientDiagnostics.CreateRequestFailedException(message.Response); 604var headers = new ShareBreakLeaseHeaders(message.Response); 605switch (message.Response.Status) 608return ResponseWithHeaders.FromValue(headers, message.Response); 610throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 624var headers = new ShareBreakLeaseHeaders(message.Response); 625switch (message.Response.Status) 628return ResponseWithHeaders.FromValue(headers, message.Response); 630throw ClientDiagnostics.CreateRequestFailedException(message.Response); 665var headers = new ShareCreateSnapshotHeaders(message.Response); 666switch (message.Response.Status) 669return ResponseWithHeaders.FromValue(headers, message.Response); 671throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 683var headers = new ShareCreateSnapshotHeaders(message.Response); 684switch (message.Response.Status) 687return ResponseWithHeaders.FromValue(headers, message.Response); 689throw ClientDiagnostics.CreateRequestFailedException(message.Response); 730var headers = new ShareCreatePermissionHeaders(message.Response); 731switch (message.Response.Status) 734return ResponseWithHeaders.FromValue(headers, message.Response); 736throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 754var headers = new ShareCreatePermissionHeaders(message.Response); 755switch (message.Response.Status) 758return ResponseWithHeaders.FromValue(headers, message.Response); 760throw ClientDiagnostics.CreateRequestFailedException(message.Response); 798var headers = new ShareGetPermissionHeaders(message.Response); 799switch (message.Response.Status) 804using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 806return ResponseWithHeaders.FromValue(value, headers, message.Response); 809throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 827var headers = new ShareGetPermissionHeaders(message.Response); 828switch (message.Response.Status) 833using var document = JsonDocument.Parse(message.Response.ContentStream); 835return ResponseWithHeaders.FromValue(value, headers, message.Response); 838throw ClientDiagnostics.CreateRequestFailedException(message.Response); 888var headers = new ShareSetPropertiesHeaders(message.Response); 889switch (message.Response.Status) 892return ResponseWithHeaders.FromValue(headers, message.Response); 894throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 909var headers = new ShareSetPropertiesHeaders(message.Response); 910switch (message.Response.Status) 913return ResponseWithHeaders.FromValue(headers, message.Response); 915throw ClientDiagnostics.CreateRequestFailedException(message.Response); 955var headers = new ShareSetMetadataHeaders(message.Response); 956switch (message.Response.Status) 959return ResponseWithHeaders.FromValue(headers, message.Response); 961throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 974var headers = new ShareSetMetadataHeaders(message.Response); 975switch (message.Response.Status) 978return ResponseWithHeaders.FromValue(headers, message.Response); 980throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1015var headers = new ShareGetAccessPolicyHeaders(message.Response); 1016switch (message.Response.Status) 1021var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1031return ResponseWithHeaders.FromValue(value, headers, message.Response); 1034throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1046var headers = new ShareGetAccessPolicyHeaders(message.Response); 1047switch (message.Response.Status) 1052var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1062return ResponseWithHeaders.FromValue(value, headers, message.Response); 1065throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1113var headers = new ShareSetAccessPolicyHeaders(message.Response); 1114switch (message.Response.Status) 1117return ResponseWithHeaders.FromValue(headers, message.Response); 1119throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1132var headers = new ShareSetAccessPolicyHeaders(message.Response); 1133switch (message.Response.Status) 1136return ResponseWithHeaders.FromValue(headers, message.Response); 1138throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1173var headers = new ShareGetStatisticsHeaders(message.Response); 1174switch (message.Response.Status) 1179var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1184return ResponseWithHeaders.FromValue(value, headers, message.Response); 1187throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1199var headers = new ShareGetStatisticsHeaders(message.Response); 1200switch (message.Response.Status) 1205var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 1210return ResponseWithHeaders.FromValue(value, headers, message.Response); 1213throw ClientDiagnostics.CreateRequestFailedException(message.Response); 1253var headers = new ShareRestoreHeaders(message.Response); 1254switch (message.Response.Status) 1257return ResponseWithHeaders.FromValue(headers, message.Response); 1259throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 1272var headers = new ShareRestoreHeaders(message.Response); 1273switch (message.Response.Status) 1276return ResponseWithHeaders.FromValue(headers, message.Response); 1278throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (2)
85var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri"); 90string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource_id");
Shared\StorageRequestValidationPipelinePolicy.cs (2)
36message.Response.Headers.TryGetValues(Constants.HeaderNames.ClientRequestId, out var echo) && 39throw Errors.ClientRequestIdMismatch(_clientDiagnostics, message.Response, echo.First(), original);
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Files.Shares.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Files.Shares.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Queues (168)
Generated\MessageIdRestClient.cs (16)
89var headers = new MessageIdUpdateHeaders(message.Response); 90switch (message.Response.Status) 93return ResponseWithHeaders.FromValue(headers, message.Response); 95throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 120var headers = new MessageIdUpdateHeaders(message.Response); 121switch (message.Response.Status) 124return ResponseWithHeaders.FromValue(headers, message.Response); 126throw ClientDiagnostics.CreateRequestFailedException(message.Response); 169var headers = new MessageIdDeleteHeaders(message.Response); 170switch (message.Response.Status) 173return ResponseWithHeaders.FromValue(headers, message.Response); 175throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 198var headers = new MessageIdDeleteHeaders(message.Response); 199switch (message.Response.Status) 202return ResponseWithHeaders.FromValue(headers, message.Response); 204throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MessagesRestClient.cs (38)
77var headers = new MessagesDequeueHeaders(message.Response); 78switch (message.Response.Status) 83var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 93return ResponseWithHeaders.FromValue(value, headers, message.Response); 96throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 109var headers = new MessagesDequeueHeaders(message.Response); 110switch (message.Response.Status) 115var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 125return ResponseWithHeaders.FromValue(value, headers, message.Response); 128throw ClientDiagnostics.CreateRequestFailedException(message.Response); 157var headers = new MessagesClearHeaders(message.Response); 158switch (message.Response.Status) 161return ResponseWithHeaders.FromValue(headers, message.Response); 163throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 174var headers = new MessagesClearHeaders(message.Response); 175switch (message.Response.Status) 178return ResponseWithHeaders.FromValue(headers, message.Response); 180throw ClientDiagnostics.CreateRequestFailedException(message.Response); 230var headers = new MessagesEnqueueHeaders(message.Response); 231switch (message.Response.Status) 236var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 246return ResponseWithHeaders.FromValue(value, headers, message.Response); 249throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 269var headers = new MessagesEnqueueHeaders(message.Response); 270switch (message.Response.Status) 275var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 285return ResponseWithHeaders.FromValue(value, headers, message.Response); 288throw ClientDiagnostics.CreateRequestFailedException(message.Response); 323var headers = new MessagesPeekHeaders(message.Response); 324switch (message.Response.Status) 329var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 339return ResponseWithHeaders.FromValue(value, headers, message.Response); 342throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 354var headers = new MessagesPeekHeaders(message.Response); 355switch (message.Response.Status) 360var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 370return ResponseWithHeaders.FromValue(value, headers, message.Response); 373throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueueRestClient.cs (50)
71var headers = new QueueCreateHeaders(message.Response); 72switch (message.Response.Status) 76return ResponseWithHeaders.FromValue(headers, message.Response); 78throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 90var headers = new QueueCreateHeaders(message.Response); 91switch (message.Response.Status) 95return ResponseWithHeaders.FromValue(headers, message.Response); 97throw ClientDiagnostics.CreateRequestFailedException(message.Response); 125var headers = new QueueDeleteHeaders(message.Response); 126switch (message.Response.Status) 129return ResponseWithHeaders.FromValue(headers, message.Response); 131throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 142var headers = new QueueDeleteHeaders(message.Response); 143switch (message.Response.Status) 146return ResponseWithHeaders.FromValue(headers, message.Response); 148throw ClientDiagnostics.CreateRequestFailedException(message.Response); 177var headers = new QueueGetPropertiesHeaders(message.Response); 178switch (message.Response.Status) 181return ResponseWithHeaders.FromValue(headers, message.Response); 183throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 194var headers = new QueueGetPropertiesHeaders(message.Response); 195switch (message.Response.Status) 198return ResponseWithHeaders.FromValue(headers, message.Response); 200throw ClientDiagnostics.CreateRequestFailedException(message.Response); 234var headers = new QueueSetMetadataHeaders(message.Response); 235switch (message.Response.Status) 238return ResponseWithHeaders.FromValue(headers, message.Response); 240throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 252var headers = new QueueSetMetadataHeaders(message.Response); 253switch (message.Response.Status) 256return ResponseWithHeaders.FromValue(headers, message.Response); 258throw ClientDiagnostics.CreateRequestFailedException(message.Response); 287var headers = new QueueGetAccessPolicyHeaders(message.Response); 288switch (message.Response.Status) 293var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 303return ResponseWithHeaders.FromValue(value, headers, message.Response); 306throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 317var headers = new QueueGetAccessPolicyHeaders(message.Response); 318switch (message.Response.Status) 323var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 333return ResponseWithHeaders.FromValue(value, headers, message.Response); 336throw ClientDiagnostics.CreateRequestFailedException(message.Response); 378var headers = new QueueSetAccessPolicyHeaders(message.Response); 379switch (message.Response.Status) 382return ResponseWithHeaders.FromValue(headers, message.Response); 384throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 396var headers = new QueueSetAccessPolicyHeaders(message.Response); 397switch (message.Response.Status) 400return ResponseWithHeaders.FromValue(headers, message.Response); 402throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (48)
80var headers = new ServiceSetPropertiesHeaders(message.Response); 81switch (message.Response.Status) 84return ResponseWithHeaders.FromValue(headers, message.Response); 86throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 104var headers = new ServiceSetPropertiesHeaders(message.Response); 105switch (message.Response.Status) 108return ResponseWithHeaders.FromValue(headers, message.Response); 110throw ClientDiagnostics.CreateRequestFailedException(message.Response); 141var headers = new ServiceGetPropertiesHeaders(message.Response); 142switch (message.Response.Status) 147var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 152return ResponseWithHeaders.FromValue(value, headers, message.Response); 155throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 166var headers = new ServiceGetPropertiesHeaders(message.Response); 167switch (message.Response.Status) 172var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 177return ResponseWithHeaders.FromValue(value, headers, message.Response); 180throw ClientDiagnostics.CreateRequestFailedException(message.Response); 211var headers = new ServiceGetStatisticsHeaders(message.Response); 212switch (message.Response.Status) 217var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 222return ResponseWithHeaders.FromValue(value, headers, message.Response); 225throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 236var headers = new ServiceGetStatisticsHeaders(message.Response); 237switch (message.Response.Status) 242var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 247return ResponseWithHeaders.FromValue(value, headers, message.Response); 250throw ClientDiagnostics.CreateRequestFailedException(message.Response); 300var headers = new ServiceListQueuesSegmentHeaders(message.Response); 301switch (message.Response.Status) 306var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 311return ResponseWithHeaders.FromValue(value, headers, message.Response); 314throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 329var headers = new ServiceListQueuesSegmentHeaders(message.Response); 330switch (message.Response.Status) 335var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 340return ResponseWithHeaders.FromValue(value, headers, message.Response); 343throw ClientDiagnostics.CreateRequestFailedException(message.Response); 379var headers = new ServiceListQueuesSegmentHeaders(message.Response); 380switch (message.Response.Status) 385var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 390return ResponseWithHeaders.FromValue(value, headers, message.Response); 393throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 415var headers = new ServiceListQueuesSegmentHeaders(message.Response); 416switch (message.Response.Status) 421var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace); 426return ResponseWithHeaders.FromValue(value, headers, message.Response); 429throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Shared\GeoRedundantReadPolicy.cs (1)
67&& message.Response.Status == Constants.HttpStatusCode.NotFound
Shared\StorageBearerTokenChallengeAuthorizationPolicy.cs (2)
85var authUri = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "authorization_uri"); 90string scope = AuthorizationChallengeParser.GetChallengeParameterFromResponse(message.Response, "Bearer", "resource_id");
Shared\StorageRequestValidationPipelinePolicy.cs (2)
36message.Response.Headers.TryGetValues(Constants.HeaderNames.ClientRequestId, out var echo) && 39throw Errors.ClientRequestIdMismatch(_clientDiagnostics, message.Response, echo.First(), original);
Shared\StorageResponseClassifier.cs (4)
27message.Response.Status == Constants.HttpStatusCode.NotFound) 33if (message.Response.Status >= 400 && 34message.Response.Headers.TryGetValue(Constants.HeaderNames.ErrorCode, out var error)) 50switch (message.Response.Status)
Azure.Storage.Queues.Samples.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Storage.Queues.Tests (11)
Shared\AssertMessageContentsPolicy.cs (1)
39_checkResponse?.Invoke(message.Response);
Shared\FaultyDownloadPipelinePolicy.cs (5)
49if (message.Response != null) 54if (message.Response.ContentStream != null) 58await message.Response.ContentStream.CopyToAsync(intermediate).ConfigureAwait(false); 62message.Response.ContentStream.CopyTo(intermediate); 69message.Response.ContentStream = new FaultyStream(
Shared\TamperStreamContentsPolicy.cs (3)
59if (TransformResponseBody && message.Response.ContentStream != default) 61message.Response.ContentStream = _streamTransform(message.Response.ContentStream);
Shared\TestResponseClassifier.cs (2)
24if (message.Response.Status >= 400 && 25message.Response.Headers.TryGetValue("x-ms-error-code", out var error))
Azure.Template (15)
Generated\TemplateRestClient.cs (8)
70switch (message.Response.Status) 75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); 77return Response.FromValue(value, message.Response); 80throw await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); 97switch (message.Response.Status) 102using var document = JsonDocument.Parse(message.Response.ContentStream); 104return Response.FromValue(value, message.Response); 107throw ClientDiagnostics.CreateRequestFailedException(message.Response);
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;
Azure.Verticals.AgriFood.Farming (64)
Generated\ApplicationDataClient.cs (3)
1327return message.Response.Status switch 1340return message.Response.Status switch 1354return message.Response.Status switch
Generated\AttachmentsClient.cs (3)
803return message.Response.Status switch 816return message.Response.Status switch 830return message.Response.Status switch
Generated\BoundariesClient.cs (4)
1882return message.Response.Status switch 1895return message.Response.Status switch 1908return message.Response.Status switch 1922return message.Response.Status switch
Generated\CropsClient.cs (3)
673return message.Response.Status switch 686return message.Response.Status switch 700return message.Response.Status switch
Generated\CropVarietiesClient.cs (3)
993return message.Response.Status switch 1006return message.Response.Status switch 1020return message.Response.Status switch
Generated\FarmClient.cs (2)
376return message.Response.Status switch 389return message.Response.Status switch
Generated\FarmersClient.cs (4)
931return message.Response.Status switch 944return message.Response.Status switch 958return message.Response.Status switch 971return message.Response.Status switch
Generated\FarmsClient.cs (4)
1199return message.Response.Status switch 1212return message.Response.Status switch 1226return message.Response.Status switch 1239return message.Response.Status switch
Generated\FieldsClient.cs (4)
1247return message.Response.Status switch 1260return message.Response.Status switch 1274return message.Response.Status switch 1287return message.Response.Status switch
Generated\HarvestDataClient.cs (3)
1493return message.Response.Status switch 1506return message.Response.Status switch 1520return message.Response.Status switch
Generated\ImageProcessingClient.cs (2)
310return message.Response.Status switch 323return message.Response.Status switch
Generated\OAuthProvidersClient.cs (3)
680return message.Response.Status switch 693return message.Response.Status switch 707return message.Response.Status switch
Generated\OAuthTokensClient.cs (2)
651return message.Response.Status switch 664return message.Response.Status switch
Generated\PlantingDataClient.cs (3)
1361return message.Response.Status switch 1374return message.Response.Status switch 1388return message.Response.Status switch
Generated\ScenesClient.cs (2)
772return message.Response.Status switch 785return message.Response.Status switch
Generated\SeasonalFieldsClient.cs (4)
1505return message.Response.Status switch 1518return message.Response.Status switch 1532return message.Response.Status switch 1545return message.Response.Status switch
Generated\SeasonsClient.cs (3)
713return message.Response.Status switch 726return message.Response.Status switch 740return message.Response.Status switch
Generated\TillageDataClient.cs (3)
1247return message.Response.Status switch 1260return message.Response.Status switch 1274return message.Response.Status switch
Generated\WeatherClient.cs (2)
983return message.Response.Status switch 996return message.Response.Status switch
Shared\AutoRest\HttpPipelineExtensions.cs (6)
27if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 29return message.Response; 32throw new RequestFailedException(message.Response); 48if (!message.Response.IsError || statusOption == ErrorOptions.NoThrow) 50return message.Response; 53throw new RequestFailedException(message.Response);
Shared\AutoRest\NextLinkOperationImplementation.cs (1)
235return message.Response;